Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2013 21:04:18 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        current@FreeBSD.org
Subject:   why does buildkernel set COMPILER_TYPE?
Message-ID:  <20130822040418.GE94127@funkthat.com>

next in thread | raw e-mail | index | archive | help
I've noticed that if you do a:
make buildworld WITHOUT_CLANG_IS_CC=YES

and then do a:
make buildkernel

(w/o the WITHOUT_CLANG_IS_CC=YES option)
that it fails...  Apparently instead of letting buildkernel figure out
which compiler it will use, the src/Makefile.inc1 forces COMPILER_TYPE
to be what the options specified instead of using what bsd.compiler.mk
figures out...

Can w/ please fix this?  This isn't the first time I've run into this,
and it's quite anoying.

This simple patch fixes it:
ndex: Makefile.inc1
===================================================================
--- Makefile.inc1       (revision 254546)
+++ Makefile.inc1       (working copy)
@@ -428,7 +428,7 @@
 .endif
 
 # kernel stage
-KMAKEENV=      ${WMAKEENV}
+KMAKEENV=      ${WMAKEENV:NCOMPILER_TYPE=*}
 KMAKE=         ${KMAKEENV} ${MAKE} ${.MAKEFLAGS} ${KERNEL_FLAGS} KERNEL=${INSTKERNNAME}
 
 #

This just removes setting COMPILER_TYPE for the kernel target and lets
the magic in bsd.compiler.mk do it's thing...

Comments?

-- 
  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?20130822040418.GE94127>