Turn off --no-undefined on OpenBSD again. Leave it on everywhere else for now.

main
Ryan C. Gordon 2013-11-16 21:52:56 -05:00
parent 5a68214b7a
commit 923709a699
2 changed files with 30 additions and 15 deletions

7
configure vendored
View File

@ -15953,6 +15953,11 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
$as_echo_n "checking for linker option --no-undefined... " >&6; }
have_no_undefined=no
case "$host" in
*-*-openbsd*)
;;
*)
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -Wl,--no-undefined"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@ -15977,6 +15982,8 @@ fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LDFLAGS="$save_LDFLAGS"
;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
$as_echo "$have_no_undefined" >&6; }

View File

@ -206,6 +206,12 @@ fi
AC_MSG_CHECKING(for linker option --no-undefined)
have_no_undefined=no
case "$host" in
dnl Skip this on platforms where it is just simply busted.
*-*-openbsd*)
;;
*)
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -Wl,--no-undefined"
AC_TRY_LINK([
@ -215,6 +221,8 @@ have_no_undefined=yes
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
])
LDFLAGS="$save_LDFLAGS"
;;
esac
AC_MSG_RESULT($have_no_undefined)
dnl See whether we are allowed to use the system C library