Author: bdrewery
Date: Tue Dec  5 21:36:08 2017
New Revision: 326583
URL: https://svnweb.freebsd.org/changeset/base/326583

Log:
  native-xtools: Ensure GCC files are cleaned up.
  
  Because we force enable MK_GCC when building we need to also force
  enable it for the cleaning phase.  Otherwise the NXB_TARGET files
  are found in the next build's kernel-toolchain phase and cause
  an error.
  
  Reported by:  sbruno
  X-MFC-With:   r325001
  MFC after:    1 month
  Sponsored by: Dell EMC

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==============================================================================
--- head/Makefile.inc1  Tue Dec  5 21:30:22 2017        (r326582)
+++ head/Makefile.inc1  Tue Dec  5 21:36:08 2017        (r326583)
@@ -2261,7 +2261,7 @@ NXBMAKE+= SUBDIR_OVERRIDE='$${NXBDIRS:M*}'
 # even if the TARGET being built for wants GCC.
 NXBMAKE+=      WANT_COMPILER_TYPE='$${X_COMPILER_TYPE}'
 native-xtools: .PHONY
-       ${_+_}cd ${.CURDIR}; ${NXBTMAKE} _cleanobj
+       ${_+_}cd ${.CURDIR}; ${NXBTMAKE} _cleanobj MK_GCC=yes
        # Build the bootstrap/host/cross tools that produce native binaries
        # Pass along MK_GCC=yes to ensure GCC-needed build tools are built.
        # We don't quite know what the NXB_TARGET wants so just build it.
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to