why does buildkernel set COMPILER_TYPE?
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."
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 1 之 5 篇):