* ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
authorMatthew Green <mrg@redhat.com>
Sun, 7 Apr 2002 13:57:53 +0000 (13:57 +0000)
committerMatthew Green <mrg@redhat.com>
Sun, 7 Apr 2002 13:57:53 +0000 (13:57 +0000)
ld/ChangeLog
ld/configure.host

index 6f3a6823d0a3ee1a981b6b431a676bc42200686c..f3968d3bb32abe6d2d4c8049fd9dab1eb1a2a416 100644 (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.
index 56a950c6bcfec6a6897d367359b1d6facef7ab38..65c2fc7a21e0e275e30fb3cb785f071d7d5d6518 100644 (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