"Julian Stacey" <[EMAIL PROTECTED]> writes:
> Here's a weirdness in 4.2-RELEASE kernel generation:
> - Compiling a GENERIC kernel _Without -O optimiser causes a broken make !
> - Compiling a GENERIC kernel _With_ -O optimiser compiles OK.
this question is cyclic. and yes, the kernel *have* to be compiled
w/ -O turned on. sorry, I don't remember why.
if you want yo put something to COPTFLAGS, try something like this :
# the only way I've found to see if I'm in the kernel tree or no !
IS_SYS?= ${.CURDIR:M*/sys*}
# make sure COPTFLAGS contains -O for kernel builds.
.if !empty(IS_SYS)
COPTFLAGS= -O
.endif
# add your stuffs...
COPTFLAGS+= -fomit-frame-pointer -fno-builtin
Cyrille.
--
home: mailto:[EMAIL PROTECTED] UNIX is user-friendly; it's just particular
work: mailto:[EMAIL PROTECTED] about who it chooses to be friends with.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message