Subject: Re: C compiler flags
To: Matthias Scheler <email@example.com>
From: Roland Illig <rillig@NetBSD.org>
Date: 11/20/2006 00:20:35
Matthias Scheler wrote:
> On Tue, Nov 14, 2006 at 12:08:49AM +0100, Ricardo Cervera Navarro wrote:
>>I am using:
>>in my /etc/mk.conf.
> I'm sorry but that is wrong.
> 1.) Please do *not* modify "CFLAGS" in "/etc/mk.conf". You will cause
> various build failures.
It's mentioned in the pkgsrc guide, so why shouldn't one do that?
> 2.) Please do *not* try to enforce using "-O2". There are packages which
> build without optimization by purpose. It is default under NetBSD for
> all the packages where this optimization level is known to work
Those packages should set
All others should be expected to work with -O2.