CFLAGS vs COPTFLAGS for building kernel modules
- From: Peter Jeremy <PeterJeremy@xxxxxxxxxxxxxxxx>
- Date: Fri, 20 Jan 2006 13:13:45 +1100
/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@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"
- Prev by Date: Using [Open]LDAP for authentication
- Next by Date: PXE Installation
- Previous by thread: Using [Open]LDAP for authentication
- Next by thread: PXE Installation
- Index(es):
Relevant Pages
|