make buildkernel figure out compiler type..

John-Mark Gurney jmg at funkthat.com
Fri Jan 24 20:01:43 UTC 2014


When I was building armeb, I would often specify the correct compiler
on buildtools/kernel-tools, but then when I went to buildkernel, I
would forget...  So, I figured out if we just drop COMPILER_TYPE from
KMAKEENV, the right magic will be executed to figure out which of
clang/gcc should be used...

$ svn diff Makefile.inc1 
Index: Makefile.inc1
===================================================================
--- Makefile.inc1       (revision 260499)
+++ Makefile.inc1       (working copy)
@@ -451,7 +451,7 @@ IMAKE_MTREE=        MTREE_CMD="nmtree ${MTREEFLAGS}"
 .endif
 
 # kernel stage
-KMAKEENV=      ${WMAKEENV}
+KMAKEENV=      ${WMAKEENV:NCOMPILER_TYPE=*}
 KMAKE=         ${KMAKEENV} ${MAKE} ${.MAKEFLAGS} ${KERNEL_FLAGS} KERNEL=${INSTKERNNAME}
 
 #

Comments?

Please CC me as I'm not subscribed to -hackers.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-hackers mailing list