mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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)
This commit is contained in:
parent
9eb3f14324
commit
3e04b0a043
1 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue