summaryrefslogtreecommitdiff
path: root/ld/configure.host
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2005-07-19 12:43:19 +0000
committerPaul Brook <paul@codesourcery.com>2005-07-19 12:43:19 +0000
commita3540342edd409d7dba03e1c4452575cd37fc16c (patch)
tree4267ae576f680293dd35846e60e3ecdc4f3f6b6a /ld/configure.host
parent85da3a565d28a070fe8d73cc5c9f6c5fc7f0a327 (diff)
2005-07-19 Paul Brook <paul@codesourcery.com>
* configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose to determine dynamic linker name.
Diffstat (limited to 'ld/configure.host')
-rw-r--r--ld/configure.host2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/configure.host b/ld/configure.host
index 45540ea436e..f9f080f6024 100644
--- a/ld/configure.host
+++ b/ld/configure.host
@@ -33,7 +33,7 @@ case "${host}" in
;;
*-*-linux*)
- HOSTING_CRT0='-dynamic-linker `specs=\`${CC} --print-file-name=specs\`; { if [ x"$specs" = xspecs ]; then ${CC} -dumpspecs; else cat "$specs"; fi; } | egrep "ld[^ ]*\.so" | sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/ld[^ ]*\.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`'
+ HOSTING_CRT0='-dynamic-linker `${CC} --help --verbose 2>&1 | egrep "ld[^ ]*\.so" | sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/ld[^ ]*\.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`'
HOSTING_LIBS='-L`dirname \`${CC} --print-file-name=libc.so\`` '"$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`'
;;