From: David Lamparter Date: Sun, 2 Sep 2018 12:52:43 +0000 (+0200) Subject: build: use -export-dynamic X-Git-Tag: frr-6.0.1~18^2~26 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ba661bd4e138b2a5ba8c67f67f0a03cfa52a7e9c;p=matthieu%2Ffrr.git build: use -export-dynamic Signed-off-by: David Lamparter --- diff --git a/Makefile.am b/Makefile.am index aae89a90d7..b4d38e69af 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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@ diff --git a/configure.ac b/configure.ac index 1e6e7ed078..6ab6d59117 100755 --- a/configure.ac +++ b/configure.ac @@ -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 ----------