* configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to
authorIan Lance Taylor <ian@airs.com>
Mon, 2 Feb 1998 19:14:33 +0000 (19:14 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 2 Feb 1998 19:14:33 +0000 (19:14 +0000)
accept either ld.so or ld-linux.so.

ld/ChangeLog
ld/configure.host

index 404780f..4e538f2 100644 (file)
@@ -1,3 +1,8 @@
+Mon Feb  2 14:10:59 1998  Ian Lance Taylor  <ian@cygnus.com>
+
+       * configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to
+       accept either ld.so or ld-linux.so.
+
 Fri Jan 30 19:16:28 1998  Doug Evans  <devans@canuck.cygnus.com>
 
        * Makefile.am ({CC,CXX}_FOR_TARGET): Change program_transform_name
index 8f739f6..fc05cdc 100644 (file)
@@ -17,7 +17,8 @@ NATIVE_LIB_DIRS=
 case "${host}" in
 
 alpha*-*-linux*)
-  HOSTING_CRT0=/usr/lib/crt1.o
+  HOSTING_CRT0='-dynamic-linker `egrep "ld[^ ]*\.so" \`gcc --print-file-name=specs\` | sed -e "s,.*-dynamic-linker[    ][      ]*\(.*/ld[^ ]*.so..\).*,\1,"` `gcc --print-file-name=crt1.o` `gcc --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else gcc --print-file-name=crtbegin.o; fi`'
+  HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -L`dirname \`gcc --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc --print-file-name=crtend.o; fi` `gcc --print-file-name=crtn.o`'
   ;;
 
 alpha*-*-*)