mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
WITHOUT_CROSS_COMPILER: Fix this to use external compiler logic.
Without this the default toolchain in /usr/bin/ would not use WORLDTMP via --sysroot, and would lack --target if cross-building. PR: 196193 Related: D3970 Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
20afc491bb
commit
d63cb012ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297277
@ -413,7 +413,8 @@ CROSSENV+= CC="${XCC} ${XCFLAGS}" CXX="${XCXX} ${XCFLAGS} ${XCXXFLAGS}" \
|
||||
RANLIB=${XRANLIB} STRINGS=${XSTRINGS} \
|
||||
SIZE="${XSIZE}"
|
||||
|
||||
.if ${XCC:N${CCACHE_BIN}:M/*}
|
||||
# External compiler needs sysroot and target flags.
|
||||
.if ${XCC:N${CCACHE_BIN}:M/*} || ${MK_CROSS_COMPILER} == "no"
|
||||
.if defined(CROSS_BINUTILS_PREFIX)
|
||||
# In the case of xdev-build tools, CROSS_BINUTILS_PREFIX won't be a
|
||||
# directory, but the compiler will look in the right place for it's
|
||||
@ -454,7 +455,7 @@ BFLAGS+= -B${CROSS_BINUTILS_PREFIX}
|
||||
XCFLAGS+= ${BFLAGS}
|
||||
XCXXFLAGS+= ${BFLAGS}
|
||||
.endif
|
||||
.endif # ${XCC:M/*}
|
||||
.endif # ${XCC:M/*} || ${MK_CROSS_COMPILER} == "no"
|
||||
|
||||
.if ${MK_LIB32} != "no" && (${TARGET_ARCH} == "amd64" || \
|
||||
${TARGET_ARCH} == "powerpc64")
|
||||
|
Loading…
Reference in New Issue
Block a user