Subject: Re: C compiler flags
To: Roland Illig <rillig@NetBSD.org>
From: Matthias Scheler <tron@zhadum.org.uk>
List: pkgsrc-users
Date: 11/20/2006 07:21:40
On Mon, Nov 20, 2006 at 12:20:35AM +0100, Roland Illig wrote:
> >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/cgi-bin/query-pr-single.pl?number=34844

> http://www.netbsd.org/Documentation/pkgsrc/configuring.html#conf.cflags

That should be fixed.

> >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.

They might not use that because the "Makefile" doesn't try to use
"-O2" in the first place.

	Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/