Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/usr.bin/egcs Don't put (target-oriented) CPPFLAGS into H...



details:   https://anonhg.NetBSD.org/src/rev/ddc3cc14599e
branches:  trunk
changeset: 477063:ddc3cc14599e
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sat Oct 09 16:10:19 1999 +0000

description:
Don't put (target-oriented) CPPFLAGS into HOST_CPPFLAGS in bulk - instead,
add the same things to HOST_CPPFLAGS as to CPPFLAGS
This is necessary to cross-compile egcs.

diffstat:

 gnu/usr.bin/egcs/Makefile.inc |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 028a9761ab7e -r ddc3cc14599e gnu/usr.bin/egcs/Makefile.inc
--- a/gnu/usr.bin/egcs/Makefile.inc     Sat Oct 09 15:33:36 1999 +0000
+++ b/gnu/usr.bin/egcs/Makefile.inc     Sat Oct 09 16:10:19 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.21 1999/09/29 13:19:15 takemura Exp $
+#      $NetBSD: Makefile.inc,v 1.22 1999/10/09 16:10:19 sommerfeld Exp $
 
 .if !defined(GCC_MAKEFILE_INC)
 GCC_MAKEFILE_INC=1
@@ -33,6 +33,12 @@
                -I${DIST} \
                -I${DIST}/config \
                -DIN_GCC -DNETBSD_NATIVE
+HOST_CPPFLAGS+= -I${.CURDIR}/../arch \
+               -I${.CURDIR}/../arch/${ARCHSUBDIR} \
+               -I${COMMONOBJ} \
+               -I${DIST} \
+               -I${DIST}/config \
+               -DIN_GCC -DNETBSD_NATIVE
 
 .if (${OBJECT_FMT} == "ELF" || defined(BOOTSTRAP_ELF))
 CPPFLAGS+=-DDEFAULT_ELF
@@ -40,10 +46,9 @@
 
 .if (${MACHINE} == "hpcmips") # XXX
 CPPFLAGS+=-D${MACHINE}
+HOST_CPPFLAGS += -D${MACHINE}
 .endif
 
-HOST_CPPFLAGS= ${CPPFLAGS}
-
 .PATH:         ${.CURDIR}/../arch \
                ${DIST} \
                ${DIST}/config



Home | Main Index | Thread Index | Old Index