[packages/hiredis] - adjusted link patch to fix soname and use (preferred) direct and .so symlink

qboosh qboosh at pld-linux.org
Thu Dec 12 20:24:55 CET 2013


commit e217076206790acf439bb73ff5eef7f4407f3ae5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Dec 12 20:26:30 2013 +0100

    - adjusted link patch to fix soname and use (preferred) direct and .so symlink

 link.patch | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
---
diff --git a/link.patch b/link.patch
index 8ae7bd5..dd6effe 100644
--- a/link.patch
+++ b/link.patch
@@ -1,5 +1,14 @@
 --- hiredis-0.11.0/Makefile.orig	2013-12-12 17:28:25.817204756 +0100
 +++ hiredis-0.11.0/Makefile	2013-12-12 17:33:18.150525821 +0100
+@@ -23,7 +23,7 @@
+ DYLIB_MINOR_NAME=$(LIBNAME).$(DYLIBSUFFIX).$(HIREDIS_MAJOR).$(HIREDIS_MINOR)
+ DYLIB_MAJOR_NAME=$(LIBNAME).$(DYLIBSUFFIX).$(HIREDIS_MAJOR)
+ DYLIBNAME=$(LIBNAME).$(DYLIBSUFFIX)
+-DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(LDFLAGS)
++DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(DYLIB_MAJOR_NAME) -o $(DYLIBNAME) $(LDFLAGS)
+ STLIBNAME=$(LIBNAME).$(STLIBSUFFIX)
+ STLIB_MAKE_CMD=ar rcs $(STLIBNAME)
+ 
 @@ -76,8 +76,8 @@
  	$(CC) -o $@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -I$(AE_DIR) $(AE_DIR)/ae.o $(AE_DIR)/zmalloc.o example-ae.c $(STLIBNAME)
  endif
@@ -11,3 +20,12 @@
  
  test: hiredis-test
  	./hiredis-test
+@@ -121,7 +121,7 @@
+ 	$(INSTALL) hiredis.h async.h adapters $(INSTALL_INCLUDE_PATH)
+ 	$(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME)
+ 	cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME)
+-	cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MAJOR_NAME) $(DYLIBNAME)
++	cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIBNAME)
+ 	$(INSTALL) $(STLIBNAME) $(INSTALL_LIBRARY_PATH)
+ 
+ 32bit:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hiredis.git/commitdiff/e217076206790acf439bb73ff5eef7f4407f3ae5



More information about the pld-cvs-commit mailing list