/usr/src/sys/dev/aic7xxx errors when compiling

Didier WIROTH didier.wiroth at mcesr.etat.lu
Thu Feb 12 00:59:07 PST 2004


> >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
> _______________________________________________
> freebsd-questions at freebsd.org mailing list 
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list