forked from Mirror/frr
build: use -export-dynamic
Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
82f9e9b358
commit
4007e3adf1
|
@ -10,6 +10,8 @@ AM_CPPFLAGS = \
|
||||||
@ASAN_FLAGS@ @TSAN_FLAGS@ @MSAN_FLAGS@ \
|
@ASAN_FLAGS@ @TSAN_FLAGS@ @MSAN_FLAGS@ \
|
||||||
-I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/lib \
|
-I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/lib \
|
||||||
-I$(top_builddir) -I$(top_builddir)/include -I$(top_builddir)/lib
|
-I$(top_builddir) -I$(top_builddir)/include -I$(top_builddir)/lib
|
||||||
|
AM_LDFLAGS = \
|
||||||
|
-export-dynamic
|
||||||
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE)
|
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE)
|
||||||
LIBCAP = @LIBCAP@
|
LIBCAP = @LIBCAP@
|
||||||
|
|
||||||
|
|
14
configure.ac
14
configure.ac
|
@ -287,20 +287,6 @@ if test x"${enable_werror}" = x"yes" ; then
|
||||||
fi
|
fi
|
||||||
AC_SUBST(WERROR)
|
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 ----------
|
||||||
dnl Essentials
|
dnl Essentials
|
||||||
dnl ----------
|
dnl ----------
|
||||||
|
|
Loading…
Reference in a new issue