Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2014 12:01:42 -0800
From:      John-Mark Gurney <jmg@funkthat.com>
To:        hackers@FreeBSD.org
Subject:   make buildkernel figure out compiler type..
Message-ID:  <20140124200141.GE75135@funkthat.com>

next in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140124200141.GE75135>