diff options
author | sjg <sjg@FreeBSD.org> | 2014-07-26 04:38:09 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2014-07-26 04:38:09 +0000 |
commit | f96bc8e82439b7846715be92b8edde5d0adc554b (patch) | |
tree | 3aa89ac0c578196064f3f79c667f4559c430f35d /lib | |
parent | 6005c78d7e3d0a40a0d91078abec00b1d3adbfa2 (diff) | |
download | FreeBSD-src-f96bc8e82439b7846715be92b8edde5d0adc554b.zip FreeBSD-src-f96bc8e82439b7846715be92b8edde5d0adc554b.tar.gz |
Reviewed by: imp
LDFLAGS is supposed to be given to CC not LD.
Define _LDFLAGS as a filtered version of LDFLAGS safe to give to LD
Diffstat (limited to 'lib')
-rw-r--r-- | lib/csu/i386-elf/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csu/i386-elf/Makefile b/lib/csu/i386-elf/Makefile index de19e93d..8a685dc 100644 --- a/lib/csu/i386-elf/Makefile +++ b/lib/csu/i386-elf/Makefile @@ -26,7 +26,7 @@ gcrt1_c.o: gcrt1_c.s ${CC} ${ACFLAGS} -c -o ${.TARGET} gcrt1_c.s gcrt1.o: gcrt1_c.o crt1_s.o - ${LD} ${LDFLAGS} -o gcrt1.o -r crt1_s.o gcrt1_c.o + ${LD} ${_LDFLAGS} -o gcrt1.o -r crt1_s.o gcrt1_c.o crt1_c.s: crt1_c.c ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1_c.c @@ -36,7 +36,7 @@ crt1_c.o: crt1_c.s ${CC} ${ACFLAGS} -c -o ${.TARGET} crt1_c.s crt1.o: crt1_c.o crt1_s.o - ${LD} ${LDFLAGS} -o crt1.o -r crt1_s.o crt1_c.o + ${LD} ${_LDFLAGS} -o crt1.o -r crt1_s.o crt1_c.o objcopy --localize-symbol _start1 crt1.o Scrt1_c.s: crt1_c.c @@ -47,7 +47,7 @@ Scrt1_c.o: Scrt1_c.s ${CC} ${ACFLAGS} -c -o ${.TARGET} Scrt1_c.s Scrt1.o: Scrt1_c.o crt1_s.o - ${LD} ${LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o + ${LD} ${_LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o objcopy --localize-symbol _start1 Scrt1.o .include <bsd.prog.mk> |