summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-07-27 05:38:09 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-07-27 05:38:09 +0000
commit30e93045c8569f806b73624f18998b7a6e531ff1 (patch)
tree7d4eeeef096b2260e8534d925f26b770562b0483 /Makefile.inc1
parent2f608e00b7ea86d9e3f727c11a4f74534866e077 (diff)
downloadFreeBSD-src-30e93045c8569f806b73624f18998b7a6e531ff1.zip
FreeBSD-src-30e93045c8569f806b73624f18998b7a6e531ff1.tar.gz
MFC r303274:
Don't disable binutils/elftoolchain bootstrapping with external compiler. Approved by: re (kib)
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc112
1 files changed, 5 insertions, 7 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 459b608..f554d65 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -72,7 +72,8 @@ X${COMPILER}?= ${${COMPILER}}
# If a full path to an external cross compiler is given, don't build
# a cross compiler.
.if ${XCC:N${CCACHE_BIN}:M/*}
-MK_CROSS_COMPILER= no
+MK_CLANG_BOOTSTRAP= no
+MK_GCC_BOOTSTRAP= no
.endif
# Pull in COMPILER_TYPE and COMPILER_FREEBSD_VERSION early.
@@ -114,7 +115,7 @@ WANT_COMPILER_VERSION!= \
# If the expected vs CC is different then we can't skip.
# GCC cannot be used for cross-arch yet. For clang we pass -target later if
# TARGET_ARCH!=MACHINE_ARCH.
-.if ${MK_SYSTEM_COMPILER} == "yes" && ${MK_CROSS_COMPILER} == "yes" && \
+.if ${MK_SYSTEM_COMPILER} == "yes" && \
(${MK_CLANG_BOOTSTRAP} == "yes" || ${MK_GCC_BOOTSTRAP} == "yes") && \
!make(showconfig) && !make(native-xtools) && !make(xdev*) && \
${WANT_COMPILER_TYPE} == ${COMPILER_TYPE} && \
@@ -548,8 +549,7 @@ BFLAGS+= -B${CROSS_BINUTILS_PREFIX}
.endif
# External compiler needs sysroot and target flags.
-.if ${MK_CROSS_COMPILER} == "no" || \
- (${MK_CLANG_BOOTSTRAP} == "no" && ${MK_GCC_BOOTSTRAP} == "no")
+.if ${MK_CLANG_BOOTSTRAP} == "no" && ${MK_GCC_BOOTSTRAP} == "no"
.if !defined(CROSS_BINUTILS_PREFIX) || !exists(${CROSS_BINUTILS_PREFIX})
BFLAGS+= -B${WORLDTMP}/usr/bin
.endif
@@ -577,7 +577,7 @@ TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/}-${TARGET_ABI}-freebsd11.0
XCFLAGS+= -target ${TARGET_TRIPLE}
.endif
XCFLAGS+= --sysroot=${WORLDTMP}
-.endif # ${MK_CROSS_COMPILER} == "no"
+.endif # ${MK_CLANG_BOOTSTRAP} == "no" && ${MK_GCC_BOOTSTRAP} == "no"
.if !empty(BFLAGS)
XCFLAGS+= ${BFLAGS}
@@ -1818,7 +1818,6 @@ _elftctools= lib/libelftc \
usr.bin/elfcopy
.endif
-.if ${MK_CROSS_COMPILER} != "no"
.if ${MK_CLANG_BOOTSTRAP} != "no"
_clang= usr.bin/clang
_clang_libs= lib/clang
@@ -1826,7 +1825,6 @@ _clang_libs= lib/clang
.if ${MK_GCC_BOOTSTRAP} != "no"
_cc= gnu/usr.bin/cc
.endif
-.endif
.if ${MK_USB} != "no"
_usb_tools= sys/boot/usb/tools
.endif
OpenPOWER on IntegriCloud