]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
set the export-dynamic linker flag on linux
authorEvan Hunt <each@isc.org>
Thu, 29 Nov 2018 06:13:27 +0000 (22:13 -0800)
committerEvan Hunt <each@isc.org>
Thu, 29 Nov 2018 06:50:00 +0000 (01:50 -0500)
configure
configure.ac

index 74c2a3677b9bddd2965d747c428059e1fb5243b4..85f07cd4e1f7d601d22b366b4a082d2ab6ebf7e7 100755 (executable)
--- a/configure
+++ b/configure
@@ -842,6 +842,7 @@ infodir
 docdir
 oldincludedir
 includedir
+runstatedir
 localstatedir
 sharedstatedir
 sysconfdir
@@ -1001,6 +1002,7 @@ datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1253,6 +1255,15 @@ do
   | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;
 
+  -runstatedir | --runstatedir | --runstatedi | --runstated \
+  | --runstate | --runstat | --runsta | --runst | --runs \
+  | --run | --ru | --r)
+    ac_prev=runstatedir ;;
+  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+  | --run=* | --ru=* | --r=*)
+    runstatedir=$ac_optarg ;;
+
   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1390,7 +1401,7 @@ fi
 for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                datadir sysconfdir sharedstatedir localstatedir includedir \
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-               libdir localedir mandir
+               libdir localedir mandir runstatedir
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -1543,6 +1554,7 @@ Fine tuning of the installation directories:
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
+  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
@@ -20229,6 +20241,7 @@ if test "$with_dlopen" = "yes"; then :
   *-linux*|*-gnu*) :
 
                 SO_CFLAGS="-fPIC"
+                 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
                 SO_LDFLAGS=""
                 if test "$use_libtool" = "yes"; then :
 
index 82d0ffad668abefdefd6845c04b03ace73bb031e..df3683ba836a002e44234956d160f0260e17345a 100644 (file)
@@ -2639,6 +2639,7 @@ AS_IF([test "$with_dlopen" = "yes"],
       [AS_CASE([$host],
               [*-linux*|*-gnu*],[
                 SO_CFLAGS="-fPIC"
+                 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
                 SO_LDFLAGS=""
                 AS_IF([test "$use_libtool" = "yes"],[
                         SO_LDFLAGS="-Xcompiler -shared"