* ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.

This commit is contained in:
Matthew Green 2002-04-07 13:57:53 +00:00
parent 0565ba9601
commit c657a1f082
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-04-07 matthew green <mrg@redhat.com>
* ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2002-04-04 Alan Modra <amodra@bigpond.net.au>
* dep-in.sed: Cope with absolute paths.

View File

@ -223,6 +223,13 @@ x86_64-*-linux-gnu*)
*-*-linux*)
;;
*-*-netbsd*)
NATIVE_LIB_DIRS=/usr/lib
# NetBSD typically does not use the GCC crtstuff, so ignore it.
HOSTING_CRT0='-dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crtbegin.o'
HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` /usr/lib/crtend.o'
;;
alpha*-*-*)
HOSTING_CRT0=/usr/ccs/lib/crt0.o
NATIVE_LIB_DIRS=/usr/ccs/lib