svn commit: r326038 - in head/stand: . arm/uboot efi efi/fdt fdt i386 mips/beri mips/beri/boot2 mips/beri/loader mips/uboot ofw/libofw powerpc/boot1.chrp powerpc/kboot powerpc/ofw powerpc/ps3 power...

Mark Millard markmi at dsl-only.net
Tue Nov 21 05:30:19 UTC 2017


It looks to me like head/stand/powerpc/boot1.chrp/Makefile might
have += vs. = issues compared to the other examples:

Warner Losh imp at FreeBSD.org wrote on
Mon Nov 20 22:42:21 UTC 2017 :

Modified: head/stand/powerpc/boot1.chrp/Makefile
==============================================================================
--- head/stand/powerpc/boot1.chrp/Makefile	Mon Nov 20 22:41:22 2017	(r326037)
+++ head/stand/powerpc/boot1.chrp/Makefile	Mon Nov 20 22:42:17 2017	(r326038)
@@ -13,9 +13,7 @@ SRCS=		boot1.c ashldi3.c syncicache.c
 
 MAN=
 
-CFLAGS= -ffreestanding -msoft-float \
-	-I${LDRSRC} -I${SYSDIR} -I${SASRC} \
-	-D_STANDALONE
+CFLAGS= -I${LDRSRC} -I${SYSDIR} -I${SASRC} -D_STANDALONE
 LDFLAGS=-nostdlib -static -Wl,-N
 
 .PATH:  ${SYSDIR}/libkern ${SRCTOP}/lib/libc/powerpc/gen ${.CURDIR}

but the other files tend to use += for at least CFLAGS. In
one case you converted an = into only using += locally:

-CFLAGS=		-ffreestanding			\
-		-I${.CURDIR}			\
+CFLAGS+=	-I${.CURDIR}			\

(Generally the mix seems to be as it was before
the changes but it likely looked odd before the
changes when the files were view together.)

There are also examples like:

 LDFLAGS=	-nostdlib -static -T ${.CURDIR}/ldscript.${MACHINE_CPUARCH}
 LDFLAGS+=	-Wl,-znotext

and others with just = . But some files seem to always
use += for LDFLAGS.

May be a round of = vs. += checking is appropriate
for the involved files?


===
Mark Millard
markmi at dsl-only.net



More information about the svn-src-head mailing list