From cffda8be2f58702412d90ea74e89bed0ab081531 Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 25 Dec 2010 18:56:44 +0000 Subject: 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. --- tools/Makefile.host | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/Makefile.host') 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 -- cgit