* 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 404780fabbc31bcfce8bb05c70dc85d49ff47b78..4e538f2467abf58152bdcd4fe108835ab8e85aba 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 8f739f6a3182c3f039a11ec0c8f577581a61fc59..fc05cdc5267004bbb69ec40b9558b3b9e2c8b065 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*-*-*)