CFLAGS and kernel builds

Alexander Best arundel at freebsd.org
Mon Nov 22 23:07:19 UTC 2010


share/examples/etc/make.conf states that:

# To compile just the kernel with special optimizations, you should use
# this instead of CFLAGS (which is not applicable to kernel builds anyway).
# There is very little to gain by using higher optimization levels, and doing
# so can cause problems.
#
#COPTFLAGS= -O -pipe

this is obviosly wrong, because CFLAGS does get picked up during kernel builds
and thus can cause a broken kernel or TARGET=buildworld to fail. shouldn't this
sentence be removed or corrected?

cheers.
alex

-- 
a13x


More information about the freebsd-hackers mailing list