summaryrefslogtreecommitdiff
path: root/tools/Makefile.host
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2010-12-25 18:56:44 +0000
committerjoerg <joerg@NetBSD.org>2010-12-25 18:56:44 +0000
commitcffda8be2f58702412d90ea74e89bed0ab081531 (patch)
tree0bb450e2177f976b6a8072bdd874df2c695b0a5a /tools/Makefile.host
parent85824b68ffe1928165d0895eada5f4d483b960a9 (diff)
If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor. This avoids leaking the source path into the final binaries.
Diffstat (limited to 'tools/Makefile.host')
-rw-r--r--tools/Makefile.host3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/Makefile.host b/tools/Makefile.host
index 8f6424f6415..693ab01b5d2 100644
--- a/tools/Makefile.host
+++ b/tools/Makefile.host
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.host,v 1.26 2009/12/01 17:06:34 uebayasi Exp $
+# $NetBSD: Makefile.host,v 1.27 2010/12/25 18:56:44 joerg Exp $
NOINFO= # defined
NOLINT= # defined
@@ -42,6 +42,7 @@ ${var}:= ${${var}}
HOSTPROGNAME?= ${HOSTPROG}
HOST_BINDIR?= ${TOOLDIR}/bin
HOST_CPPFLAGS:= ${HOST_CPPFLAGS} ${CPPFLAGS}
+HOST_CPPFLAGS:= ${HOST_CPPFLAGS:N-Wp,-iremap,*}
.undef LINKS
SRCS?= ${HOSTPROG}.c