Subject: Re: cc not in path: how to specify?
To: Packages Technical List NetBSD Discussion <>
From: Christian Biere <>
List: tech-pkg
Date: 12/23/2006 12:55:03
Georg Schwarz wrote:
> Am 23.12.2006 um 12:19 schrieb Christian Biere:
> >>Should bootstrap have taken care of this?
> >
> >bootstrap saves only PKGSRC_COMPILER which should be gcc in your case
> >but not CC. I guess it wouldn't hurt to store CC as well in the  
> >example
> >mk.conf.
> OK, what would be the most portable way for the bootstrap script of  
> figuring out when to do this?
> I think it would be needed if CC is set to something starting on /.  
> What's the best way in a shell script to test for that?

Maybe like this?

case "$CC" in
/*) echo "CC=$CC" >> "${MKCONF_EXAMPLE}"