]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9591 - Fix library symbol versioning map file for Solaris
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 24 Jun 2021 21:28:01 +0000 (21:28 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 24 Jun 2021 21:28:01 +0000 (21:28 +0000)
Solaris wants a different option to work with Gnu style library symbol maps

configure.ac

index 6e44acf395711a629226ef773689e99c86f64554..000982843a93bce89b9e15dd72b0e546402acec7 100644 (file)
@@ -3131,13 +3131,18 @@ fi
 
 OL_VERSIONED_SYMBOLS=""
 if test $ol_enable_versioning != no; then
-       LDVS=`$LD --help < /dev/null 2>/dev/null | grep version-script`
+       LDVS=`$LD --help < /dev/null 2>/dev/null | grep gnu-version-script`
        if test -z "$LDVS"; then
-               if test $ol_enable_versioning = "yes" ; then
-                       AC_MSG_ERROR([Library symbol versioning requested but not supported])
+               LDVS=`$LD --help < /dev/null 2>/dev/null | version-script`
+               if test -z "$LDVS"; then
+                       if test $ol_enable_versioning = "yes" ; then
+                               AC_MSG_ERROR([Library symbol versioning requested but not supported])
+                       fi
+               else
+                       OL_VERSIONED_SYMBOLS="-Wl,--version-script="
                fi
        else
-               OL_VERSIONED_SYMBOLS="-Wl,--version-script="
+               OL_VERSIONED_SYMBOLS="-z gnu-version-script="
        fi
 fi