diff options
author | Nick Clifton <nickc@redhat.com> | 2005-01-10 14:57:32 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-01-10 14:57:32 +0000 |
commit | 71a2d53a5c6f997aeb726d0a8264cd97282bffd4 (patch) | |
tree | 7e3faa37585b13d5abb50a0040f686a6add662e4 | |
parent | 669460c7e67689e5cd066f5133c3e79a35c12492 (diff) | |
download | gdb-71a2d53a5c6f997aeb726d0a8264cd97282bffd4.zip gdb-71a2d53a5c6f997aeb726d0a8264cd97282bffd4.tar.gz gdb-71a2d53a5c6f997aeb726d0a8264cd97282bffd4.tar.bz2 |
(linux targets): Use "${CC} -dumpspecs" instead of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
(ia64-*-aix): Delete - this target is obsolete, and would be broken by this patch.
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/configure.host | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index ace3eec..3cd3b6d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2005-01-10 Greg Schaffer <gschafer@zip.com.au> + + * configure.host (linux targets): Use "${CC} -dumpspecs" instead + of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0. + (ia64-*-aix): Delete - this target is obsolete, and would be + broken by this patch. + 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr> * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*. diff --git a/ld/configure.host b/ld/configure.host index 3b088c4..7aa5a76 100644 --- a/ld/configure.host +++ b/ld/configure.host @@ -33,7 +33,7 @@ case "${host}" in ;; *-*-linux*) - HOSTING_CRT0='-dynamic-linker `egrep "ld[^ ]*\.so" \`${CC} --print-file-name=specs\` | 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 `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_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`' ;; @@ -145,11 +145,6 @@ ia64-*-linux-gnu*) HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]*\*,ld-linux-ia64,g"` ;; -ia64-*-aix*) - HOSTING_CRT0='-dynamic-linker `egrep "libc.so" \`${CC} --print-file-name=specs\` | sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/libc.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`' - ;; - mips*-sgi-irix4* | mips*-sgi-irix5*) HOSTING_CRT0=/usr/lib/crt1.o HOSTING_LIBS="$HOSTING_LIBS"' /usr/lib/crtn.o' |