Subject: Re: C compiler flags
To: Roland Illig <>
From: Matthias Scheler <>
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?


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