Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/toolchain/ld Make all ELF platforms properly use -d...
details: https://anonhg.NetBSD.org/src/rev/5982a5bc079c
branches: trunk
changeset: 510542:5982a5bc079c
user: tv <tv%NetBSD.org@localhost>
date: Thu May 31 19:48:58 2001 +0000
description:
Make all ELF platforms properly use -dynamic-linker, crt0, crtbegin, and
crtend, primarily for testing. Fixes bootstrap ld testsuite failures.
diffstat:
gnu/dist/toolchain/ld/configure.host | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 1c27b21848aa -r 5982a5bc079c gnu/dist/toolchain/ld/configure.host
--- a/gnu/dist/toolchain/ld/configure.host Thu May 31 19:41:57 2001 +0000
+++ b/gnu/dist/toolchain/ld/configure.host Thu May 31 19:48:58 2001 +0000
@@ -21,12 +21,19 @@
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*)
+alpha*-*-netbsd* | mips*-*-netbsd* | sparc64-*-netbsd* | *-*-netbsdelf*)
# 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
+ HOSTING_CRT0='-dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crtbegin.o'
+ HOSTING_LIBS="$HOSTING_LIBS /usr/lib/crtend.o"
+ ;;
+
+*-*-netbsd*)
+ # NetBSD non-ELF platforms.
+ NATIVE_LIB_DIRS=/lib
HOSTING_CRT0=/usr/lib/crt0.o
;;
Home |
Main Index |
Thread Index |
Old Index