aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 2c047daadf..1af4f12f7d 100644
--- a/configure.in
+++ b/configure.in
@@ -914,6 +914,20 @@ EOF
fi
rm -f conftest*])
AC_SUBST(libc_cv_z_nodelete)
+
+ AC_CACHE_CHECK(for -z nodlopen option,
+ libc_cv_z_nodlopen, [dnl
+ cat > conftest.c <<EOF
+int _start (void) { return 42; }
+EOF
+ if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodlopen 1>&AC_FD_CC])
+ then
+ libc_cv_z_nodlopen=yes
+ else
+ libc_cv_z_nodlopen=no
+ fi
+ rm -f conftest*])
+ AC_SUBST(libc_cv_z_nodlopen)
fi
if test $elf != yes; then