Matthias Scheler wrote:
On Tue, Nov 14, 2006 at 12:08:49AM +0100, Ricardo Cervera Navarro wrote:I am using: CFLAGS+=-O2 -march=athlon 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? http://www.netbsd.org/Documentation/pkgsrc/configuring.html#conf.cflags
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 BUILDLINK_TRANSFORM+= rm:-O* All others should be expected to work with -O2. Roland