Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jan 2003 16:59:23 +1100
From:      Richard Perini <rpp@ci.com.au>
To:        freebsd-current@freebsd.org
Subject:   Crossbuilding -current from -stable fails in boot2
Message-ID:  <20030102055923.GA12588@mippet.ci.com.au>

next in thread | raw e-mail | index | archive | help

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:  rpp@ci.com.au
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030102055923.GA12588>