]> granicus.if.org Git - pdns/commitdiff
Let libtool figure out how to export symbols
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 24 Dec 2014 09:11:43 +0000 (10:11 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 24 Dec 2014 09:11:43 +0000 (10:11 +0100)
It knows exactly how to pass the correct flags
to the linker.

configure.ac
pdns/Makefile.am

index 78c66e5720a6ff510fcf3949a7d8c69c6698025b..47e008cd69d7c2015cb0eedbc589ad0a06bf0026 100644 (file)
@@ -138,7 +138,6 @@ LIBCRYPT=$LIBS
 LIBS="$my_save_LIBS"
 AC_SUBST(LIBCRYPT)
 
-DYNLINKFLAGS=""
 THREADFLAGS=""
 
 AM_CONDITIONAL([OS_MACOSX], false)
@@ -154,24 +153,21 @@ solaris2.8 | solaris2.9 )
   CXXFLAGS="-D_REENTRANT $CXXFLAGS"
   ;;
 linux*)
-  DYNLINKFLAGS="-rdynamic"
   THREADFLAGS="-pthread"
   CXXFLAGS="-D_GNU_SOURCE $CXXFLAGS"
   ;;
 darwin*)
-  DYNLINKFLAGS="-rdynamic"
   CXXFLAGS="-D__APPLE_USE_RFC_3542 $CXXFLAGS"
   AM_CONDITIONAL([OS_MACOSX], true)
   ;;
 *)
-  DYNLINKFLAGS="-rdynamic"
   LDFLAGS="-pthread $LDFLAGS"
   CXXFLAGS="-pthread $CXXFLAGS"
   ;;
 esac
 
 AC_SUBST(THREADFLAGS)
-AC_SUBST(DYNLINKFLAGS)
+AC_SUBST([DYNLINKFLAGS], [-export-dynamic])
 
 PDNS_ENABLE_VERBOSE_LOGGING
 PDNS_WITH_SYSTEM_POLARSSL
index 3ae3b1ac7f02bc365cf40ed9c3d23a7930487df7..0dda89f937712c22651e55aef8957cd351990184 100644 (file)
@@ -187,8 +187,7 @@ pdns_server_SOURCES = \
 pdns_server_LDFLAGS = \
        $(DYNLINKFLAGS) \
        $(THREADFLAGS) \
-       $(BOOST_SERIALIZATION_LDFLAGS) \
-       -rdynamic
+       $(BOOST_SERIALIZATION_LDFLAGS)
 
 pdns_server_LDADD = \
        @moduleobjects@ \