[patch] generic configure.host support for netbsd
matthew green
mrg@redhat.com
Sat Mar 23 21:52:00 GMT 2002
hi folks
this should work for the bulk of netbsd targets. i certainly need this
to get the bootstrap tests working on netbsd/sparc64.
ok to commit?
.mrg.
* configure.host (*-*-netbsd*): New generic configuration, set
NATIVE_LIB_DIRS, HOSTING_CRT0 and HOSTING_LIBS.
Index: configure.host
===================================================================
RCS file: /cvs/src/src/ld/configure.host,v
retrieving revision 1.18
diff -p -r1.18 configure.host
*** configure.host 2001/12/19 19:58:28 1.18
--- configure.host 2002/03/24 05:49:11
*************** x86_64-*-linux-gnu*)
*** 234,239 ****
--- 234,246 ----
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`'
;;
+ *-*-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
More information about the Binutils
mailing list