aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2014-07-26 04:38:09 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2014-07-26 04:38:09 +0000
commit5b6dc2efc9b2891767cd28d71ac3ed4878b0ddbb (patch)
tree3aa89ac0c578196064f3f79c667f4559c430f35d /sys/boot
parent8926f21ce1185571fdee38cc85153b01c0062b3a (diff)
downloadsrc-5b6dc2efc9b2891767cd28d71ac3ed4878b0ddbb.tar.gz
src-5b6dc2efc9b2891767cd28d71ac3ed4878b0ddbb.zip
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
Notes
Notes: svn path=/head/; revision=269114
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/mips/beri/boot2/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/mips/beri/boot2/Makefile b/sys/boot/mips/beri/boot2/Makefile
index 71953949c9d2..b4258c0c030f 100644
--- a/sys/boot/mips/beri/boot2/Makefile
+++ b/sys/boot/mips/beri/boot2/Makefile
@@ -73,7 +73,7 @@ LDFLAGS= -nostdlib \
CFLAGS+= -I${.CURDIR}/../common
flashboot.elf: relocate.o start.o boot2.o altera_jtag_uart.o cfi.o sdcard.o
- ${LD} ${LDFLAGS} -T ${.CURDIR}/flashboot.ldscript -o ${.TARGET} \
+ ${LD} ${_LDFLAGS} -T ${.CURDIR}/flashboot.ldscript -o ${.TARGET} \
${.ALLSRC} ${LIBSTAND}
flashboot: flashboot.elf
objcopy -S -O binary ${.TARGET}.elf ${.TARGET}
@@ -81,7 +81,7 @@ flashboot.md5: flashboot
md5 flashboot > flashboot.md5
jtagboot: start.o boot2.o altera_jtag_uart.o cfi.o sdcard.o
- ${LD} ${LDFLAGS} -T ${.CURDIR}/jtagboot.ldscript -o ${.TARGET} \
+ ${LD} ${_LDFLAGS} -T ${.CURDIR}/jtagboot.ldscript -o ${.TARGET} \
${.ALLSRC} ${LIBSTAND}
jtagboot.md5: jtagboot
md5 jtagboot > jtagboot.md5