Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2004 09:58:58 +0100
From:      Didier WIROTH <didier.wiroth@mcesr.etat.lu>
To:        'Roop Nanuwa' <roop@hqst.com>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: /usr/src/sys/dev/aic7xxx errors when compiling
Message-ID:  <0HSY00L78RM4MY@mail.etat.lu>
In-Reply-To: <402A986F.4010703@hqst.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> >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@freebsd.org mailing list 
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0HSY00L78RM4MY>