mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
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.
This commit is contained in:
parent
d8837e94a8
commit
c5badc84cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34813
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user