Bug 1107063: link nspr libs with -soname on OpenBSD r=ted
authorLandry Breuil <landry@openbsd.org>
Mon, 15 Dec 2014 12:05:30 -0500
changeset 4603 91625f36dc691122a53379ee139f6a67021c9037
parent 4602 65d930885b66506bd3093d8f46e6b4ee7c5570d9
child 4604 1fcea1618bb702678399b034ee88d860f5cb27de
push id146
push usertmielczarek@mozilla.com
push dateMon, 15 Dec 2014 17:05:46 +0000
reviewersted
bugs1107063
Bug 1107063: link nspr libs with -soname on OpenBSD r=ted
configure
configure.in
--- a/configure
+++ b/configure
@@ -7377,17 +7377,17 @@ tools are selected during the Xcode/Deve
     DLL_SUFFIX=so.1.0
     DSO_CFLAGS=-fPIC
     MDCPUCFG_H=_openbsd.cfg
     PR_MD_CSRCS=openbsd.c
     OS_LIBS="-lc"
     if test -z "$USE_NSPR_THREADS"; then
         USE_PTHREADS=1
     fi
-    DSO_LDOPTS='-shared -fPIC'
+    DSO_LDOPTS='-shared -fPIC -Wl,-soname,$(notdir $@)'
     MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
     ;;
 
 *-osf*)
     SHELL_OVERRIDE="SHELL		= /usr/bin/ksh"
     $as_echo "#define XP_UNIX 1" >>confdefs.h
 
     $as_echo "#define OSF1 1" >>confdefs.h
--- a/configure.in
+++ b/configure.in
@@ -2173,17 +2173,17 @@ tools are selected during the Xcode/Deve
     DLL_SUFFIX=so.1.0
     DSO_CFLAGS=-fPIC
     MDCPUCFG_H=_openbsd.cfg
     PR_MD_CSRCS=openbsd.c
     OS_LIBS="-lc"
     if test -z "$USE_NSPR_THREADS"; then
         USE_PTHREADS=1
     fi
-    DSO_LDOPTS='-shared -fPIC'
+    DSO_LDOPTS='-shared -fPIC -Wl,-soname,$(notdir $@)'
     MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
     ;;
 
 *-osf*)
     SHELL_OVERRIDE="SHELL		= /usr/bin/ksh"
     AC_DEFINE(XP_UNIX)
     AC_DEFINE(OSF1)
     AC_DEFINE(_REENTRANT)