svn commit: r288965 - head/share/mk
Simon J. Gerraty
sjg at FreeBSD.org
Wed Oct 7 00:28:25 UTC 2015
Author: sjg
Date: Wed Oct 7 00:28:24 2015
New Revision: 288965
URL: https://svnweb.freebsd.org/changeset/base/288965
Log:
Do not assume host toolchain supports sysroot
Modified:
head/share/mk/local.init.mk
Modified: head/share/mk/local.init.mk
==============================================================================
--- head/share/mk/local.init.mk Wed Oct 7 00:24:27 2015 (r288964)
+++ head/share/mk/local.init.mk Wed Oct 7 00:28:24 2015 (r288965)
@@ -9,11 +9,12 @@
.endif
.endif
-.if ${MK_SYSROOT} == "yes" && !empty(SYSROOT)
+.if ${MK_SYSROOT} == "yes" && !empty(SYSROOT) && ${MACHINE} != "host"
CFLAGS_LAST+= --sysroot=${SYSROOT}
CXXFLAGS_LAST+= --sysroot=${SYSROOT}
LDADD+= --sysroot=${SYSROOT}
.elif ${MK_STAGING} == "yes"
+CFLAGS+= -nostdinc
CFLAGS+= -I${STAGE_INCLUDEDIR}
LDADD+= -L${STAGE_LIBDIR}
.endif
More information about the svn-src-all
mailing list