From 50b342960fe116feca2123a0f4e771d6e8bbc4f1 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Tue, 19 Jul 2005 12:43:19 +0000 Subject: [PATCH] 2005-07-19 Paul Brook * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose to determine dynamic linker name. --- ld/ChangeLog | 5 +++++ ld/configure.host | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 84934b614..3125dc56e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2005-07-19 Paul Brook + + * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose + to determine dynamic linker name. + 2005-07-18 Nick Clifton * configure.tgt: Restore alpha ordering to list of arches. diff --git a/ld/configure.host b/ld/configure.host index 45540ea43..f9f080f60 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`' ;; -- 2.11.4.GIT