summaryrefslogtreecommitdiff
path: root/ld/configure.host
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-06-17 11:01:17 +0000
committerNick Clifton <nickc@redhat.com>2003-06-17 11:01:17 +0000
commita15cee066eab1d42d748b9bbe0d5c7c804937c65 (patch)
treed8bc901e99e17278235356cf6335aec529c383b5 /ld/configure.host
parentc1dc6ef48614007e3db7c6072c756e884af1988c (diff)
downloadbinutils-redhat-a15cee066eab1d42d748b9bbe0d5c7c804937c65.tar.gz
* ld-undefined/undefined.exp (i?86-*-freebsd*): Remove xfail.
* configure.host (*-*-freebsd*): Add known path for ld-elf.so.1 if not produced by gcc.
Diffstat (limited to 'ld/configure.host')
-rw-r--r--ld/configure.host6
1 files changed, 1 insertions, 5 deletions
diff --git a/ld/configure.host b/ld/configure.host
index 69132cda5a..c11b13bb40 100644
--- a/ld/configure.host
+++ b/ld/configure.host
@@ -19,11 +19,7 @@ HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ]; then libgcc=../gcc/libgcc.a; else libg
case "${host}" in
*-*-freebsd*)
- # Older versions of gcc do not use a specs file. In those cases,
- # gcc -print-file-name=specs will simply print specs. We create a
- # dummy specs files to handle this.
- echo "-dynamic-linker `${CC} --print-file-name=ld-elf.so.1`" > specs
- HOSTING_CRT0='-dynamic-linker `${CC} --print-prog-name=ld-elf.so.1` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `${CC} --print-file-name=crtbegin.o`'
+ HOSTING_CRT0='-dynamic-linker `[ -f \`${CC} --print-prog-name=ld-elf.so.1\` ] || echo /usr/libexec/``${CC} --print-prog-name=ld-elf.so.1` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `${CC} --print-file-name=crtbegin.o`'
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`'
;;