svn commit: r302246 - head/lib/libc/tests/ssp
Cy Schubert
cy at FreeBSD.org
Tue Jun 28 07:47:43 UTC 2016
Author: cy
Date: Tue Jun 28 07:47:42 2016
New Revision: 302246
URL: https://svnweb.freebsd.org/changeset/base/302246
Log:
This commit addresses regression introduceded in r302177
(WITH_SYSTEM_COMPILER: Enable by default) and it's prerequisite: r300354,
caused i386 builds to fail when cross-built on an amd64 host.
Reviewed by: bdrewery, delphij, gjb
Approved by: re (gjb)
Modified:
head/lib/libc/tests/ssp/Makefile
Modified: head/lib/libc/tests/ssp/Makefile
==============================================================================
--- head/lib/libc/tests/ssp/Makefile Tue Jun 28 07:11:27 2016 (r302245)
+++ head/lib/libc/tests/ssp/Makefile Tue Jun 28 07:47:42 2016 (r302246)
@@ -1,5 +1,9 @@
# $FreeBSD$
+# XXX This is a workaround to allow i386 to cross-compile on an amd64 host.
+.include <host-target.mk>
+# XXX ---
+
.include <bsd.own.mk>
NO_WERROR=
@@ -34,7 +38,17 @@ PROGS+= h_memset
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
.if ${COMPILER_TYPE} == "clang" && ${MK_TOOLCHAIN} == "yes"
.if ${COMPILER_VERSION} < 30500 || 30700 <= ${COMPILER_VERSION}
+
+# XXX This is a workaround to allow i386 to cross-compile on an amd64 host.
+.if ${MACHINE_CPUARCH} == ${_HOST_ARCH}
+# XXX ---
+
PROGS+= h_raw
+
+# XXX This is a workaround to allow i386 to cross-compile on an amd64 host.
+.endif
+# XXX ---
+
.endif
.endif
.endif
More information about the svn-src-head
mailing list