From 35cd3c9701666164c5bf05eff9afce912cb84fe0 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 12 Dec 2001 18:36:44 +0000 Subject: * configure.in: Use -nostartfiles -nostdlib for linker tests, fix combreloc test so that it works in this case. 2001-12-12 Andreas Jaeger * configure.in: Use -nostartfiles -nostdlib for linker tests, fix combreloc test so that it works in this case. * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch. --- configure.in | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index aefbb4e30f..336104b3a2 100644 --- a/configure.in +++ b/configure.in @@ -999,7 +999,9 @@ EOF cat > conftest.c <&AC_FD_CC]) + if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c + -nostartfiles -nostdlib + -Wl,--enable-new-dtags,-z,nodelete 1>&AC_FD_CC]) then libc_cv_z_nodelete=yes else @@ -1013,7 +1015,9 @@ EOF cat > conftest.c <&AC_FD_CC]) + if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c + -nostartfiles -nostdlib + -Wl,--enable-new-dtags,-z,nodlopen 1>&AC_FD_CC]) then libc_cv_z_nodlopen=yes else @@ -1027,7 +1031,9 @@ EOF cat > conftest.c <&AC_FD_CC]) + if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c + -nostartfiles -nostdlib + -Wl,--enable-new-dtags,-z,initfirst 1>&AC_FD_CC]) then libc_cv_z_initfirst=yes else @@ -1053,9 +1059,12 @@ EOF AC_CACHE_CHECK(for -z combreloc, libc_cv_z_combreloc, [dnl cat > conftest.c <&AC_FD_CC]) + if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c + -nostdlib -nostartfiles + -Wl,-z,combreloc 1>&AC_FD_CC]) then dnl The following test is a bit weak. We must use a tool which can test dnl cross-platform since the gcc used can be a cross compiler. Without -- cgit v1.2.1