]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: use -export-dynamic
authorDavid Lamparter <equinox@opensourcerouting.org>
Sun, 2 Sep 2018 12:52:43 +0000 (14:52 +0200)
committerDavid Lamparter <equinox@diac24.net>
Thu, 25 Oct 2018 15:30:21 +0000 (17:30 +0200)
Signed-off-by: David Lamparter <equinox@diac24.net>
Makefile.am
configure.ac

index aae89a90d7fc2b81d660c746ec453ed5b42fd372..b4d38e69af7d25f92838f9606d86762c7f7920f2 100644 (file)
@@ -10,6 +10,8 @@ AM_CPPFLAGS = \
        @ASAN_FLAGS@ @TSAN_FLAGS@ @MSAN_FLAGS@ \
        -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/lib \
        -I$(top_builddir) -I$(top_builddir)/include -I$(top_builddir)/lib
+AM_LDFLAGS = \
+       -export-dynamic
 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE)
 LIBCAP = @LIBCAP@
 
index 1e6e7ed078f59c8fafce6ad763dc7449b45d3988..6ab6d59117e2982ee105aff5e6b1eb6283da912b 100755 (executable)
@@ -287,20 +287,6 @@ if test x"${enable_werror}" = x"yes" ; then
 fi
 AC_SUBST(WERROR)
 
-dnl need link on this one, not compile
-AC_LANG_PUSH(C)
-ac_ld_flag_save="$LDFLAGS"
-LDFLAGS="$LDFLAGS -rdynamic"
-AC_MSG_CHECKING([[whether linker supports -rdynamic]])
-AC_LINK_IFELSE(
-       [AC_LANG_PROGRAM([[]])],
-       [AC_MSG_RESULT([yes])],
-       [
-               LDFLAGS="$ac_ld_flag_save"
-               AC_MSG_RESULT([no])
-       ])
-AC_LANG_POP(C)
-
 dnl ----------
 dnl Essentials
 dnl ----------