tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Packages not honouring CFLAGS



On Mon, Aug 10, 2015 at 08:24:40AM +0200, Thomas Klausner wrote:
 > On Sun, Aug 09, 2015 at 07:57:04PM +0000, David Holland wrote:
 > > The upshot of all this is that honoring external CFLAGS (from pkgsrc
 > > or wherever) in general requires explicit patching.
 > > 
 > > For simple packages this is usually no more complex than
 > >    -CFLAGS=-O2 -Wall
 > >    +CFLAGS+=-O2 -Wall
 > > in a couple places; it is not hard to do and the problem is only that
 > > there's a lot of it.
 > 
 > In general, adding CFLAGS to MAKE_FLAGS will override this without
 > needing a patch; i.e.:
 > MAKE_FLAGS+=	 CFLAGS=${CFLAGS:Q}

...only if what the package itself puts in CFLAGS is of no importance,
which is true only for the simplest packages...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index