/usr/share/examples/etc/make.conf v1.265.2.1 states:

# 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

Unfortunately, it seems that kernel modules are build with CFLAGS
rather than COPTFLAGS.  This is somewhat embarrassing when CFLAGS
includes options that don't work in the kernel but aren't explicitly
disabled (eg -msse3).  My make-foo isn't up to quickly isolating the
problem.

-- 
Peter Jeremy
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to