summaryrefslogtreecommitdiff
path: root/include/Makefile
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2014-05-16 14:47:18 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2014-05-16 14:47:18 +0000
commit1a682d2cea21bc46d683533c5368c3a2c6dc1fc2 (patch)
tree64701f4885b827c79d8be01c81668923f260768d /include/Makefile
parenta5e980ce9586d309f79530eaf3716259c178ea32 (diff)
Notes
Diffstat (limited to 'include/Makefile')
-rw-r--r--include/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/Makefile b/include/Makefile
index 8b896bad8999..274dd2c4591f 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -121,7 +121,7 @@ _MARCHS+= x86
.if ${MK_STAGING} != "no"
# tell bsd.incs.mk that we have it covered
-stage_includes:
+NO_STAGE_INCLUDES=
.endif
.include <bsd.prog.mk>
@@ -371,3 +371,12 @@ symlinks:
.if ${MK_META_MODE} == "yes"
touch ${.TARGET}
.endif
+
+.if ${MACHINE} == "host"
+# we're here because we are building a sysroot...
+# we need MACHINE et al set correctly
+HOST_MACHINE!= uname -m
+HOST_MACHINE_ARCH!= uname -p
+MACHINE:= ${HOST_MACHINE}
+MACHINE_ARCH:= ${HOST_MACHINE_ARCH}
+.endif