This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Felipe Contreras <al593181@mail.mty.itesm.mx>] bug in useldt.h


Roland McGrath <roland@frob.com> writes:

> This would also bite builds done in a fresh cross-compilation environment,
> which is not nice.  You should be able to build a cross-gcc, install it in
> an empty tooldir, use that to build libc and install that in the tooldir.
>
> I think these test links should use -nostdlib -nostartfiles.  The test for
> --version-script does that, and it ought to be fine for all the other
> linker feature tests.

Something like this?  Felipe - and others with this problem -, please
regenerate configure (with autoconf 2.13!) and tell me whether it
looks fine in your environment.

Ok to commit?

Andreas

2001-12-11  Andreas Jaeger  <aj@suse.de>

	* configure.in: Use -nostartfiles -nostdlib for linker tests.

============================================================
Index: configure.in
--- configure.in	2001/12/06 09:17:24	1.328
+++ configure.in	2001/12/11 08:56:56
@@ -999,7 +999,9 @@ EOF
   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])
+  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 <<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])
+  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 <<EOF
 int _start (void) { return 42; }
 EOF
-  if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,initfirst 1>&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
@@ -1055,7 +1061,9 @@ EOF
   cat > conftest.c <<EOF
 int foo (void) { return 0; }
 EOF
-  if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c -Wl,-z,combreloc 1>&AC_FD_CC])
+  if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c
+			-nostartfiles -nostdlib
+			-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

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]