When crossbuilding -current on a -stable machine, sys/boot/i386/boot2
fails during a make buildworld, the culprit appears to be  cpp on 
4-stable not grokking some of the CFLAGS arguments while cpp'ing boot1.s.  

A patch to fix the Makefile is below, not sure if its the desired way 
to fix?  If it is, could I ask that someone commit it please?

--
Richard Perini                                       Internet:  [EMAIL PROTECTED]
Corinthian Engineering Pty Ltd                       PHONE:   +61 2 9906 4333
Sydney, Australia                                    FAX:     +61 2 9906 2464


--- Makefile.ORIG       Thu Jan  2 16:35:34 2003
+++ Makefile    Thu Jan  2 16:45:46 2003
@@ -45,6 +45,11 @@
        -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
        -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings
 
+CPPFLAGS= -D${BOOT2_UFS} \
+       -I${.CURDIR}/../../common \
+       -I${.CURDIR}/../btx/lib -I. \
+       -Wall
+
 LDFLAGS=-nostdlib -static -N --gc-sections
 
 all: boot1 boot2
@@ -56,7 +61,7 @@
        ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o
 
 boot1.o: boot1.s
-       ${CPP} ${CFLAGS} ${.IMPSRC} | \
+       ${CPP} ${CPPFLAGS} ${.IMPSRC} | \
            ${AS} ${AFLAGS} --defsym FLAGS=${B1FLAGS} -o ${.TARGET}
 
 boot2.o: boot2.c ${.CURDIR}/../../common/ufsread.c

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to