Subject: Re: Nasty bug in devel/zlib
To: Hubert Feyrer <hubert@feyrer.de>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 02/27/2005 00:52:39
> I can only guess it's to allow people to override the default CFLAGS 
> setting. Maybe pass in the original CFLAGS as PKG_CFLAGS from the pkg's 
> Makefile:
> 
>  	CFLAGS?=	-O2
>  	CONFIGURE_ENV+=	PKG_CFLAGS=${CFLAGS}
> 
> and then prepend that in the Makefile.in:
> 
>  	CFLAGS=	${PKG_CFLAGS}
> 

does not work since configure replaces everything right hand side of
^CFLAGS= with its own settings.
Moreover, I am not sure whether it makes sense to pass PKG_CFLAGS=${CFLAGS}
as CONFIGURE_ENV, i.e. in the configure stage. I think it has to be passed
in the build stage.

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 georg.schwarz@freenet.de  +49 178 8545053