> >Hi, thanks for answering
> >I'm using this in make.conf
> >COPTFLAGS= -O2 -pipe -funroll-loops
> >CFLAGS= -O3 -pipe -funroll-loops

Thx for answering.

But... hmm..., I'm not using -O3 for the kernel, or at least I thought I
wasn't!?

When using COPTFLAGS in make.conf, isn't CFLAGS ignored when building the
kernel?
I build the kernel with:
make -j2 buildkernel KERNCONF=MYKERNEL

Does it mean that COPTFLAGS & CFLAGS are actually merged?!
This:
COPTFLAGS= -O2 -pipe -funroll-loops
CFLAGS= -O3 -pipe -funroll-loops

Results in this: 
gcc -O2 -O3 -pipe -funroll-loops 
 
thx

> This is because using -O3 adds the option -finline-functions. 
> You should only use -O when compiling the kernel and that's 
> all that is actually supported.
> 
> --roop
> _______________________________________________
> [EMAIL PROTECTED] mailing list 
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "[EMAIL PROTECTED]"

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

Reply via email to