From ba661bd4e138b2a5ba8c67f67f0a03cfa52a7e9c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 2 Sep 2018 14:52:43 +0200 Subject: [PATCH] build: use -export-dynamic Signed-off-by: David Lamparter --- Makefile.am | 2 ++ configure.ac | 14 -------------- 2 files changed, 2 insertions(+), 14 deletions(-) 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 ---------- -- 2.39.5