diff options
author | Ian Lance Taylor <ian@airs.com> | 2000-02-28 04:31:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2000-02-28 04:31:30 +0000 |
commit | 3558ff4cdb9ff02acaa1c330b87e883118d731b4 (patch) | |
tree | cc0570cbdff9ada84a56e2529a18543804b26972 | |
parent | 96ce09a7cfce0a80ec6b13265a30eb6fd5ecdb52 (diff) | |
download | gdb-3558ff4cdb9ff02acaa1c330b87e883118d731b4.zip gdb-3558ff4cdb9ff02acaa1c330b87e883118d731b4.tar.gz gdb-3558ff4cdb9ff02acaa1c330b87e883118d731b4.tar.bz2 |
2000-02-27 Loren J. Rittle <ljrittle@acm.org>
* configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
host "i[3456]86-*-freebsdelf*".
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/configure.host | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 1c72e90..bb5d00f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2000-02-27 Loren J. Rittle <ljrittle@acm.org> + + * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for + host "i[3456]86-*-freebsdelf*". + 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com> * scripttempl/i386go32.sc: Move misplaced semicolons. diff --git a/ld/configure.host b/ld/configure.host index e7ed188..38ad347 100644 --- a/ld/configure.host +++ b/ld/configure.host @@ -40,6 +40,20 @@ arm*-*-linux-gnu*) HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`' ;; +i[3456]86-*-freebsdelf*) + # The new BSD `make' has a bug: it doesn't pass empty arguments in + # shell commands. So we need to make this value non-empty in order + # for the genscripts.sh call to work. There's nothing magic about + # the value `/lib'; it's just a dummy. + NATIVE_LIB_DIRS=/lib + # 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 /usr/libexec/ld-elf.so.1" > specs + 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_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`' + ;; + i[3456]86-*-bsd* | i[3456]86-*-freebsd* | i[3456]86-*-netbsd*) # The new BSD `make' has a bug: it doesn't pass empty arguments in # shell commands. So we need to make this value non-empty in order |