Subject: Re: Optimization flags in pkgs
To: None <tech-pkg@NetBSD.ORG>
From: Johnny C. Lam <jlam@netbsd.org>
List: tech-pkg
Date: 06/08/2002 14:40:31
On Sat, Jun 08, 2002 at 12:00:17PM +0200, Julio Merino wrote:
> On Thu, Jun 06, 2002 at 11:48:40PM +0200, Martin Husemann wrote:
> > 
> > I wonder if hardcoding -O2 here is a good idea.
> 
> I don't think so. Although I've seen that many packages "redefine" CFLAGS.
> That is, I have COPTS set in mk.conf, with -O2 -march=pentiumpro and some
> more things, but many packages do not take this vars :( Even with CFLAGS.

I think that you can put "CFLAGS+=${COPTS}" in the part of mk.conf that
is protected by BSD_PKG_MK to achieve what you want.

	Cheers,

	-- Johnny Lam <jlam@netbsd.org>