Fix build. Both clang and gcc are required on pc98.

X-MFC with:	r256915
This commit is contained in:
Yoshihiro Takahashi 2013-10-29 12:34:11 +00:00
parent 6f1dba186e
commit 3d2fb95abf

View File

@ -1388,12 +1388,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