Bug 1107063: link ldap libs with -soname on OpenBSD r=standard8
authorLandry Breuil <landry@openbsd.org>
Tue, 16 Dec 2014 21:01:16 +0100
changeset 39 badd67031f9e
parent 38 76b178a6ba59
child 40 91917f608ab8
push id26
push userlandry@openbsd.org
push dateTue, 16 Dec 2014 20:07:26 +0000
reviewersstandard8
bugs1107063
Bug 1107063: link ldap libs with -soname on OpenBSD r=standard8
c-sdk/configure
c-sdk/configure.in
--- a/c-sdk/configure
+++ b/c-sdk/configure
@@ -5164,17 +5164,17 @@ EOF
     CXXFLAGS="$CXXFLAGS -ansi -Wall"
     if test "$SO_VERSION"; then
         DLL_SUFFIX="so.$SO_VERSION"
     else
         DLL_SUFFIX=so.1.0
     fi
     DSO_CFLAGS=-fPIC
     USE_NSPR_THREADS=1
-    DSO_LDOPTS='-shared -fPIC'
+    DSO_LDOPTS='-shared -fPIC -Wl,-soname,$(notdir $@)'
     ;;
 
 *-openvms*)
     cat >> confdefs.h <<\EOF
 #define XP_UNIX 1
 EOF
 
     RESOLVE_LINK_SYMBOLS=1
--- a/c-sdk/configure.in
+++ b/c-sdk/configure.in
@@ -1818,17 +1818,17 @@ mips-sony-newsos*)
     CXXFLAGS="$CXXFLAGS -ansi -Wall"
     if test "$SO_VERSION"; then
         DLL_SUFFIX="so.$SO_VERSION"
     else
         DLL_SUFFIX=so.1.0
     fi
     DSO_CFLAGS=-fPIC
     USE_NSPR_THREADS=1
-    DSO_LDOPTS='-shared -fPIC'
+    DSO_LDOPTS='-shared -fPIC -Wl,-soname,$(notdir $@)'
     ;;
 
 *-openvms*)
     AC_DEFINE(XP_UNIX)
     RESOLVE_LINK_SYMBOLS=1
     AR_FLAGS='c $@'
     DSO_LDOPTS='-shared -auto_symvec $(LDFLAGS) $(OPTIMIZER)'
     ;;