summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2013-11-01 16:48:30 +0000
committergjb <gjb@FreeBSD.org>2013-11-01 16:48:30 +0000
commitd1f5c9bfc2856b6b40e631c5e1281faae9c9633c (patch)
treec4e5412f75db438b73226938f5a79e8119dbf929 /Makefile.inc1
parentbc89db057bab6d4c7215396b2a1ba84629d42e3d (diff)
downloadFreeBSD-src-d1f5c9bfc2856b6b40e631c5e1281faae9c9633c.zip
FreeBSD-src-d1f5c9bfc2856b6b40e631c5e1281faae9c9633c.tar.gz
MFC r257329 (nyan):
Fix build, both clang and gcc are required on pc98. Approved by: re (kib) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc17
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index de4b1a5..4eff523 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1381,12 +1381,17 @@ _binutils= gnu/usr.bin/binutils
# If an full path to an external cross compiler is given, don't build
# a cross compiler.
.if ${XCC:M/*} == "" && ${MK_CROSS_COMPILER} != "no"
-.if (${MK_CLANG_IS_CC} != "no" || ${CC:T:Mclang} == "clang") && ${TARGET} != "pc98"
+.if ${MK_CLANG_IS_CC} != "no" || ${CC:T:Mclang} == "clang"
_clang= usr.bin/clang
_clang_libs= lib/clang
.else
_cc= gnu/usr.bin/cc
.endif
+
+# The boot2 for pc98 requires gcc.
+.if ${TARGET} == "pc98"
+_cc= gnu/usr.bin/cc
+.endif
.endif
cross-tools: .MAKE
OpenPOWER on IntegriCloud