Subject: Re: CC in environment overrides pkgsrc
To: None <tech-pkg@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-pkg
Date: 09/20/2007 17:55:56
On Thu, Sep 20, 2007 at 10:53:29AM -0500, Jeremy C. Reed wrote:
> On Thu, 20 Sep 2007, Joerg Sonnenberger wrote:
> 
> > On Wed, Sep 19, 2007 at 08:42:20AM -0500, Jeremy C. Reed wrote:
> > > I forgot I had CC set to a compiler other than gcc.
> > > 
> > > So pkgsrc got in a loop:
> > 
> > What did you set CC to exactly? The logic for deciding if GCC is good
> > enough is a bit fragile... Not sure whether the same issues happen for
> > !GCC as well.
> 
> setenv CC /home/reed/pcc/bin/pcc
> 
> I forgot about it and I didn't want it. I want pkgsrc to use its defined 
> compiler (which would be my default gcc).

As I said the GCC logic is a bit strange at times. It tries to derive
the name for the subcomponents and itself from CC.

Joerg