about summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-21 00:15:14 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-21 00:15:14 +0000
commit0fb7851fce038b80be60eae2d66d60f337a60e14 (patch)
treeab7595811bd0e5b1d1c7160629dad013f4f23f8a /configure.in
parentbf8b3e74bfdc50935445c324f8dc03025a6f2419 (diff)
downloadglibc-0fb7851fce038b80be60eae2d66d60f337a60e14.tar.gz
glibc-0fb7851fce038b80be60eae2d66d60f337a60e14.tar.xz
glibc-0fb7851fce038b80be60eae2d66d60f337a60e14.zip
Update.
	* elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
	(tests-nodelete-yes): Define.
	(modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
	Add rules to build nodelete and modules.
	* elf/nodelete.c: New file.
	* elf/nodelmod1.c: New file.
	* elf/nodelmod2.c: New file.
	* configure.in: Add test for -z nodelete option.
	* config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
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 bf7b307e2e..2c047daadf 100644
--- a/configure.in
+++ b/configure.in
@@ -900,6 +900,20 @@ EOF
   fi
   rm -f conftest*])
   AC_SUBST(libc_cv_asm_protected_directive)
+
+  AC_CACHE_CHECK(for -z nodelete option,
+		 libc_cv_z_nodelete, [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,nodelete 1>&AC_FD_CC])
+  then
+    libc_cv_z_nodelete=yes
+  else
+    libc_cv_z_nodelete=no
+  fi
+  rm -f conftest*])
+  AC_SUBST(libc_cv_z_nodelete)
 fi
 
 if test $elf != yes; then