pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/hiredis hiredis: Fix SunOS linker flags.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8f26bb49d88f
branches:  trunk
changeset: 374592:8f26bb49d88f
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Jan 26 09:33:31 2018 +0000

description:
hiredis: Fix SunOS linker flags.

diffstat:

 databases/hiredis/distinfo               |   4 ++--
 databases/hiredis/patches/patch-Makefile |  14 +++++++++++---
 2 files changed, 13 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r af081ae829f2 -r 8f26bb49d88f databases/hiredis/distinfo
--- a/databases/hiredis/distinfo        Fri Jan 26 09:25:10 2018 +0000
+++ b/databases/hiredis/distinfo        Fri Jan 26 09:33:31 2018 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.6 2017/07/07 11:21:12 wiz Exp $
+$NetBSD: distinfo,v 1.7 2018/01/26 09:33:31 jperkin Exp $
 
 SHA1 (hiredis-0.13.3.tar.gz) = be6f1c50fc4d649dd2924f0afecc0a1705dbe0d3
 RMD160 (hiredis-0.13.3.tar.gz) = 0183a5bfffa09fa51bc89667081d89c619b85037
 SHA512 (hiredis-0.13.3.tar.gz) = 0d8b71d5ee4105e8aaeeee308795afc2c1f60a04b0bfe8ae873d800a0c157882ec307efa04a8d0e63b538fd3fc3f88eedf4d46cb87c8937e2403927aeb7e434c
 Size (hiredis-0.13.3.tar.gz) = 58291 bytes
-SHA1 (patch-Makefile) = 28334ea2818f494061c4d663c213a01e793d7126
+SHA1 (patch-Makefile) = ab9270f4dd2fe46aa39db5ca11ce51209f7cb239
diff -r af081ae829f2 -r 8f26bb49d88f databases/hiredis/patches/patch-Makefile
--- a/databases/hiredis/patches/patch-Makefile  Fri Jan 26 09:25:10 2018 +0000
+++ b/databases/hiredis/patches/patch-Makefile  Fri Jan 26 09:33:31 2018 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-Makefile,v 1.4 2017/07/07 11:21:12 wiz Exp $
+$NetBSD: patch-Makefile,v 1.5 2018/01/26 09:33:31 jperkin Exp $
 
 use libtool
 
---- Makefile.orig      2015-08-25 12:16:20.000000000 +0000
+--- Makefile.orig      2015-09-16 10:25:02.000000000 +0000
 +++ Makefile
-@@ -51,6 +51,7 @@ DYLIB_MAJOR_NAME=$(LIBNAME).$(DYLIBSUFFI
+@@ -51,13 +51,14 @@ DYLIB_MAJOR_NAME=$(LIBNAME).$(DYLIBSUFFI
  DYLIBNAME=$(LIBNAME).$(DYLIBSUFFIX)
  DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(LDFLAGS)
  STLIBNAME=$(LIBNAME).$(STLIBSUFFIX)
@@ -12,6 +12,14 @@
  STLIB_MAKE_CMD=ar rcs $(STLIBNAME)
  
  # Platform-specific overrides
+ uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
+ ifeq ($(uname_S),SunOS)
+   REAL_LDFLAGS+= -ldl -lnsl -lsocket
+-  DYLIB_MAKE_CMD=$(CC) -G -o $(DYLIBNAME) -h $(DYLIB_MINOR_NAME) $(LDFLAGS)
++  DYLIB_MAKE_CMD=$(CC) -shared -o $(DYLIBNAME) -Wl,-h,$(DYLIB_MINOR_NAME) $(LDFLAGS)
+   INSTALL= cp -r
+ endif
+ ifeq ($(uname_S),Darwin)
 @@ -66,7 +67,7 @@ ifeq ($(uname_S),Darwin)
    DYLIB_MAKE_CMD=$(CC) -shared -Wl,-install_name,$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(LDFLAGS)
  endif



Home | Main Index | Thread Index | Old Index