Skip to content

Commit 1b8a6ef

Browse files
committed
configure.ac: add conditional for -z,defs
1 parent 802a6aa commit 1b8a6ef

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,12 @@ if test x"$debug_enabled" != x"yes" ; then
219219
CFLAGS="-DNDEBUG $CFLAGS"
220220
fi
221221

222+
AS_ECHO_N(["checking to see if linker understands -z,defs... "])
223+
LDFLAGS_OLD="-Wl $LDFLAGS"
222224
LDFLAGS="-Wl,-z,defs $LDFLAGS"
225+
AC_LINK_IFELSE([AC_LANG_PROGRAM()],
226+
AS_ECHO("yes"),
227+
AS_ECHO("no"); LDFLAGS="$LDFLAGS_OLD")
223228

224229
dnl
225230
dnl Make sure we can actually handle the "--with-*" and "--enable-*" stuff.

0 commit comments

Comments
 (0)