aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-12-05 02:23:36 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-12-05 02:23:36 +0000
commit4a51c7085e42cb631fe0f5ddf112115d55cbee65 (patch)
tree05894d831f670d48b55f3ad598467a6537533027 /Makefile.inc1
parenta854949ff15cfca23765ec4f2ccdfa48b8a24dbe (diff)
downloadsrc-4a51c7085e42cb631fe0f5ddf112115d55cbee65.tar.gz
src-4a51c7085e42cb631fe0f5ddf112115d55cbee65.zip
native-xtools: Fix build without META_MODE for GCC archs.
The initial kernel-toolchain is built with TARGET=MACHINE but we want GCC to have files generated for TARGET=NXB_TARGET instead later on. Just clean the files between building of the toolchain and nxb binaries which will let it rebuild when needed. Reported by: sbruno X-MFC-With: r325001 MFC after: 1 month Sponsored by: Dell EMC
Notes
Notes: svn path=/head/; revision=326553
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc12
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index fdad7f754977..c37c8394dbd2 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2274,6 +2274,8 @@ native-xtools: .PHONY
# needed build tools are built.
${_+_}cd ${.CURDIR}; ${NXBTMAKE} _includes MK_CLANG=no MK_GCC=no
${_+_}cd ${.CURDIR}; ${NXBTMAKE} _libraries MK_CLANG=no MK_GCC=no
+ # Clean out improper TARGET=MACHINE files
+ ${_+_}cd ${.CURDIR}/gnu/usr.bin/cc/cc_tools; ${NXBTMAKE} cleandir
.if !defined(NO_OBJWALK)
${_+_}cd ${.CURDIR}; ${NXBMAKE} _obj
.endif