From: Matthew Green Date: Sun, 7 Apr 2002 13:57:53 +0000 (+0000) Subject: * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c657a1f082d393862981e62d8e6ed377d549539d;p=binutils-gdb.git * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 6f3a6823d0a..f3968d3bb32 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2002-04-07 matthew green + + * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF. + 2002-04-04 Alan Modra * dep-in.sed: Cope with absolute paths. diff --git a/ld/configure.host b/ld/configure.host index 56a950c6bcf..65c2fc7a21e 100644 --- a/ld/configure.host +++ b/ld/configure.host @@ -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