From cb2a59bc57e0a295080ad8ef033bbf512ff40df4 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Wed, 10 Apr 2002 02:20:48 +0000 Subject: [PATCH] In the cross case we need to provide TARGET_MACHINE. --- gnu/usr.bin/cc/collect2/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/usr.bin/cc/collect2/Makefile b/gnu/usr.bin/cc/collect2/Makefile index c7283d6f63d..8fc706644b9 100644 --- a/gnu/usr.bin/cc/collect2/Makefile +++ b/gnu/usr.bin/cc/collect2/Makefile @@ -10,6 +10,8 @@ BINDIR= /usr/libexec NOMAN= NOSHARED=yes +CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\" + DPADD+= ${LIBCC_INT} LDADD+= ${LIBCC_INT} @@ -23,7 +25,8 @@ underscore.c: Makefile else \ echo "int prepends_underscore = 0;" >>underscore.c; \ fi - # wrong to do this here, but easiest way out to duplicate gcc.c. + @# wrong to do this here, but easiest way out to duplicate gcc.c. + echo "#include " >>underscore.c echo "char *xstrerror(int e) { return strerror(e); }" >>underscore.c rm -f tmp-dum.c tmp-dum.s