summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-03-23 11:50:38 +0000
committerbde <bde@FreeBSD.org>1998-03-23 11:50:38 +0000
commit4616b3ebefaf5f0c9deecdd5a8da0330def49e95 (patch)
treec34cae1cb5061e3dc94e2e1abcba7fc1c19f6bcf
parent5f1d9ae55526864c4b8d8815fc7aba5d4d94da7b (diff)
downloadFreeBSD-src-4616b3ebefaf5f0c9deecdd5a8da0330def49e95.zip
FreeBSD-src-4616b3ebefaf5f0c9deecdd5a8da0330def49e95.tar.gz
Honour -static in LDLAGS. ld without -Bstatic is happy to choose
static libraries if there are no shared libraries in the search path, but gcc without -static blindly attempts to link crt0.o.
-rw-r--r--gnu/usr.bin/cc/cc_tools/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile
index 54b5536..e7cb497 100644
--- a/gnu/usr.bin/cc/cc_tools/Makefile
+++ b/gnu/usr.bin/cc/cc_tools/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.8 1998/03/08 05:29:49 peter Exp $
+# $Id: Makefile,v 1.9 1998/03/12 12:52:24 bde Exp $
#
#
@@ -19,7 +19,7 @@ bc-$i.h: bi-$i bytecode.def
./bi-$i < ${GCCDIR}/bytecode.def > bc-$i.h
bi-$i: bi-$i.o bi-parser.o bi-lexer.o bi-reverse.o
- ${CC} ${.ALLSRC} -o ${.TARGET}
+ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
SRCS+= bc-$i.h
LOCOBJS+= bi-$i.o
@@ -52,7 +52,7 @@ SRCS+= insn-$i.c
.for i in config flags codes emit opinit recog extract peep attr output
gen$i: gen$i.o rtl.o obstack.o
- ${CC} ${.ALLSRC} -o ${.TARGET}
+ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
gen$i.o: gen$i.c ${RTL_H}
LOCOBJS+= gen$i.o
@@ -61,7 +61,7 @@ CLEANFILES+= gen$i gen$i.o
.for i in attrtab
gen$i: gen$i.o rtl.o rtlanal.o print-rtl.o obstack.o
- ${CC} ${.ALLSRC} -o ${.TARGET}
+ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
gen$i.o: gen$i.c ${RTL_H}
LOCOBJS+= gen$i.o
OpenPOWER on IntegriCloud