COPTFLAGS (not?) only for compiling the kernel?

platanthera platanthera at web.de
Thu May 13 16:04:37 PDT 2004


On Friday 14 May 2004 00:48, Kris Kennaway wrote:
> On Thu, May 13, 2004 at 11:29:07PM +0200, platanthera wrote:
> > [/etc/make.conf]
> > ...
> > # 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= [whatever]
> > ...
> >
> > just the kernel... sounds like COPTFLAGS setting should not effect
> > world or port builds, but apparently it does.
>
> It shouldn't, CFLAGS is used for that.
>
> Kris


I'm just compiling koffice and it looks like COPTFLAGS= -O -pipe
overrides the koffice defaults (no CFLAGS defined in make.conf).

...
if /bin/sh ../../../libtool --silent --mode=compile --tag=CXX c++ 
-DHAVE_CONFIG_H -I. -I. -I../../.. -I. -I../../../lib/kofficeui 
-I../../../lib/kofficeui -I../../../lib/kofficecore 
-I../../../lib/kofficecore -I../../../lib/store -I../../../lib/store 
-I../../../lib/kwmf -I../../../lib/kwmf -I/usr/local/include 
-I/usr/X11R6/include  -I/usr/local/include -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2 
-DSRCDIR="\"/share/FreeBSD/ports/editors/koffice-kde3/work/koffice-1.3.1/filters/xsltfilter/export\""  
-DQT_THREAD_SUPPORT   -I/usr/local/include -I/usr/local/include  
-I/usr/X11R6/include -D_GETOPT_H -D_THREAD_SAFE   -Wnon-virtual-dtor 
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings 
-DNDEBUG -DNO_DEBUG -O2 -O -pipe -march=k6-3 -fno-exceptions

-fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST 
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT xsltexport.lo -MD 
-MP -MF ".deps/xsltexport.Tpo" \
...


More information about the freebsd-questions mailing list