From 4616b3ebefaf5f0c9deecdd5a8da0330def49e95 Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 23 Mar 1998 11:50:38 +0000 Subject: 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. --- gnu/usr.bin/cc/cc_tools/Makefile | 8 ++++---- 1 file 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 -- cgit v1.1