Bug 720373 Use SO_VERSION if present in environment on OpenBSD r=richm LDAPCSDK_20120124_607D_RTM LDAPCSDK_6_0_7D_RTM
authorLandry Breuil <landry@openbsd.org>
Tue, 24 Jan 2012 14:27:04 +0000
changeset 30 e104d6403813434f9f0075fa7e2e771b6d01d081
parent 29 ffe2bc1068bc7de7fc00b58db55c09fcbe5259a0
child 31 e2a7625e577e21158c23d45390d2b3395beb7d06
push id20
push userbugzilla@standard8.plus.com
push dateTue, 24 Jan 2012 14:27:58 +0000
reviewersrichm
bugs720373
Bug 720373 Use SO_VERSION if present in environment on OpenBSD r=richm On OpenBSD ports build system, the library versionning is controlled by SO_VERSION environment variable, use it to set DLL_SUFFIX if set.
c-sdk/configure.in
--- a/c-sdk/configure.in
+++ b/c-sdk/configure.in
@@ -1848,17 +1848,21 @@ mips-sony-newsos*)
 *-openbsd*)
     LD='$(CC)'
     AC_DEFINE(XP_UNIX)
     AC_DEFINE(OPENBSD)
     AC_DEFINE(HAVE_BSD_FLOCK)
     AC_DEFINE(HAVE_SOCKLEN_T)
     CFLAGS="$CFLAGS -ansi -Wall"
     CXXFLAGS="$CXXFLAGS -ansi -Wall"
-    DLL_SUFFIX=so.1.0
+    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'
     ;;
 
 *-openvms*)
     AC_DEFINE(XP_UNIX)
     RESOLVE_LINK_SYMBOLS=1