Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 May 2004 01:03:25 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        platanthera <platanthera@web.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: COPTFLAGS (not?) only for compiling the kernel?
Message-ID:  <20040513220325.GC2334@gothmog.gr>
In-Reply-To: <200405132329.07892.platanthera@web.de>
References:  <200405132329.07892.platanthera@web.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-05-13 23:29, platanthera <platanthera@web.de> 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.
> Or do I misunderstand something?

Yes, you do.  But I'm sure that you will find the make.conf(5) manpage
very informative and useful.  Especially the following parts:

|     The following list provides a name and short description for variables
|     that are used for all builds, or are used by the makefiles for things
|     other than builds. [...]
|
|     CFLAGS        (str) Controls the compiler setting when compiling C code.
|                   Optimization levels above -O (-O2, ...) are not supported.
|
|     [...]
|
|     The following list provides a name and short description for variables
|     that are only used doing a kernel build: [...]
|
|     COPTFLAGS     (str) Controls the compiler settings when building the ker-
|                   nel.  Optimization levels above [-O (-O2, ...)] are not

I hope this helps a bit.

- Giorgos



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