Subject: Re: CFLAGS in mk.conf
To: Georg Schwarz <georg.schwarz@freenet.de>
From: Idar Tollefsen <idart@performancedesign.no>
List: tech-pkg
Date: 05/29/2005 23:40:10
>>To my understanding, they should import CFLAGS from mk.conf and add to
>>them if needed. Not the other way around.
>
> OK, and how is this being done correctly?
The package's Makefile includes bsd.prefs.mk with
.include "../../mk/bsd.prefs.mk"
and then adds to CFLAGS with
CFLAGS+=
The scenario you describe would occur if the package
set CFLAGS _before_ importing bsd.prefs.mk.
Especially since CFLAGS in mk.conf is usually set
with "=", not "+=".
- IT