Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools Add the program's CPPFLAGS to HOST_CPPFLAGS using make...
details: https://anonhg.NetBSD.org/src/rev/c541f68a073c
branches: trunk
changeset: 516558:c541f68a073c
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Oct 25 01:25:02 2001 +0000
description:
Add the program's CPPFLAGS to HOST_CPPFLAGS using make(1)'s normal
lazy evaluation semantics, not the "assign it now" semantics. This
allows variables used in the program's CPPFLAGS to get the correct
values of e.g. MACHINE, MACHINE_ARCH, MACHINE_CPU, etc.
Problem was notices when propagating MACHINE and MACHINE_ARCH via
MAKEFLAGS (i.e. from the command line, rather than the environment).
For this to work, make sure you <bsd.hostprog.mk> is at least rev 1.15.
diffstat:
tools/Makefile.host | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 78db4406dc00 -r c541f68a073c tools/Makefile.host
--- a/tools/Makefile.host Thu Oct 25 01:21:14 2001 +0000
+++ b/tools/Makefile.host Thu Oct 25 01:25:02 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.host,v 1.4 2001/10/25 00:36:26 thorpej Exp $
+# $NetBSD: Makefile.host,v 1.5 2001/10/25 01:25:02 thorpej Exp $
# Preload <bsd.obj.mk> to set up obj rules (with proper ${.CURDIR}).
.include <bsd.obj.mk>
@@ -24,7 +24,8 @@
HOSTPROGNAME?= ${HOSTPROG}
HOST_BINDIR?= ${TOOLDIR}/bin
HOST_CPPFLAGS:= -include ${_CURDIR}/../compat/compat_netbsd.h -Wall \
- ${HOST_CPPFLAGS} ${CPPFLAGS}
+ ${HOST_CPPFLAGS}
+HOST_CPPFLAGS+= ${CPPFLAGS}
MKMAN= no
SRCS?= ${PROG}.c
SRCS+= ${HOST_SRCS} nb_progname.c
Home |
Main Index |
Thread Index |
Old Index