]> git.pld-linux.org Git - packages/hiredis.git/blob - link.patch
807a98402bb97bee82253076e473a333976510bb
[packages/hiredis.git] / link.patch
1 --- hiredis-0.13.3/Makefile.orig        2015-09-16 12:25:02.000000000 +0200
2 +++ hiredis-0.13.3/Makefile     2016-11-08 16:37:58.943150777 +0100
3 @@ -49,7 +49,7 @@
4  DYLIB_MINOR_NAME=$(LIBNAME).$(DYLIBSUFFIX).$(HIREDIS_SONAME)
5  DYLIB_MAJOR_NAME=$(LIBNAME).$(DYLIBSUFFIX).$(HIREDIS_MAJOR)
6  DYLIBNAME=$(LIBNAME).$(DYLIBSUFFIX)
7 -DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(LDFLAGS)
8 +DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(DYLIB_MAJOR_NAME) -o $(DYLIBNAME) $(LDFLAGS)
9  STLIBNAME=$(LIBNAME).$(STLIBSUFFIX)
10  STLIB_MAKE_CMD=ar rcs $(STLIBNAME)
11  
12 @@ -140,8 +140,8 @@
13  
14  hiredis-test: test.o $(STLIBNAME)
15  
16 -hiredis-%: %.o $(STLIBNAME)
17 -       $(CC) $(REAL_CFLAGS) -o $@ $(REAL_LDFLAGS) $< $(STLIBNAME)
18 +hiredis-%: %.o $(DYLIBNAME)
19 +       $(CC) $(REAL_CFLAGS) -o $@ $(REAL_LDFLAGS) $< -L. -l$(subst lib,,$(LIBNAME))
20  
21  test: hiredis-test
22         ./hiredis-test
23 @@ -184,6 +184,7 @@
24         mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH)
25         $(INSTALL) hiredis.h async.h read.h sds.h adapters $(INSTALL_INCLUDE_PATH)
26         $(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME)
27 +       cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME)
28         cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIBNAME)
29         $(INSTALL) $(STLIBNAME) $(INSTALL_LIBRARY_PATH)
30         mkdir -p $(INSTALL_PKGCONF_PATH)
This page took 0.10435 seconds and 2 git commands to generate.