aboutsummaryrefslogtreecommitdiff
path: root/ld/configure.host
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-02-02 19:14:33 +0000
committerIan Lance Taylor <ian@airs.com>1998-02-02 19:14:33 +0000
commit49d579a06ccbe0b672884d73c80e73c2ce53ba8d (patch)
tree92ab563e5e35184df93bf7f5419e17af40617e9f /ld/configure.host
parentb73ebb798d161ea0aabd749a6e79e6e00235d9f2 (diff)
downloadgdb-49d579a06ccbe0b672884d73c80e73c2ce53ba8d.zip
gdb-49d579a06ccbe0b672884d73c80e73c2ce53ba8d.tar.gz
gdb-49d579a06ccbe0b672884d73c80e73c2ce53ba8d.tar.bz2
* configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to
accept either ld.so or ld-linux.so.
Diffstat (limited to 'ld/configure.host')
-rw-r--r--ld/configure.host3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/configure.host b/ld/configure.host
index 8f739f6..fc05cdc 100644
--- a/ld/configure.host
+++ b/ld/configure.host
@@ -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*-*-*)