svn commit: r314114 - head/sys/boot/mips/beri/boot2

John Baldwin jhb at FreeBSD.org
Wed Feb 22 23:58:55 UTC 2017


Author: jhb
Date: Wed Feb 22 23:58:54 2017
New Revision: 314114
URL: https://svnweb.freebsd.org/changeset/base/314114

Log:
  Use LDFLAGS with CC instead of _LDFLAGS.
  
  This is a followup to r311458.  _LDFLAGS is for use with LD, whereas
  LDFLAGS is for use with CC.

Modified:
  head/sys/boot/mips/beri/boot2/Makefile

Modified: head/sys/boot/mips/beri/boot2/Makefile
==============================================================================
--- head/sys/boot/mips/beri/boot2/Makefile	Wed Feb 22 23:57:22 2017	(r314113)
+++ head/sys/boot/mips/beri/boot2/Makefile	Wed Feb 22 23:58:54 2017	(r314114)
@@ -71,7 +71,7 @@ LDFLAGS=	-nostdlib			\
 CFLAGS+=	-I${.CURDIR}/../common
 
 flashboot.elf: relocate.o start.o boot2.o altera_jtag_uart.o cfi.o sdcard.o
-	${CC} ${_LDFLAGS} -T ${.CURDIR}/flashboot.ldscript -o ${.TARGET}	\
+	${CC} ${LDFLAGS} -T ${.CURDIR}/flashboot.ldscript -o ${.TARGET}	\
 	    ${.ALLSRC} ${LIBSTAND}
 flashboot: flashboot.elf
 	${OBJCOPY} -S -O binary ${.TARGET}.elf ${.TARGET}
@@ -79,7 +79,7 @@ flashboot.md5: flashboot
 	md5 flashboot > flashboot.md5
 
 jtagboot: start.o boot2.o altera_jtag_uart.o cfi.o sdcard.o
-	${CC} ${_LDFLAGS} -T ${.CURDIR}/jtagboot.ldscript -o ${.TARGET}	\
+	${CC} ${LDFLAGS} -T ${.CURDIR}/jtagboot.ldscript -o ${.TARGET}	\
 	    ${.ALLSRC} ${LIBSTAND}
 jtagboot.md5: jtagboot
 	md5 jtagboot > jtagboot.md5


More information about the svn-src-all mailing list