Subject: Re: CFLAGS vs CXXFLAGS
To: None <tech-pkg@netbsd.org>
From: None <joerg@britannica.bec.de>
List: tech-pkg
Date: 03/04/2006 12:26:29
On Sat, Mar 04, 2006 at 05:03:24AM +0000, segv@netctl.net wrote:
> My question is: will I lose some special optimisation flags for certain
> packages when I set CFLAGS= instead of CFLAGS+= and why does pkgsrc append CFLAGS
> to CXXFLAGS?
This is not part of pkgsrc, but rather a result of the default
definition in bmake's sys.mk. It sets CXXFLAGS?= ${CFLAGS}, which gets
lazily expanded at the assignment. Explicitly setting CXXFLAGS or
reordering both statements are work arounds.
Joerg