Subject: Re: cc vs gcc in elm
To: None <tech-pkg@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-pkg
Date: 10/13/2002 13:27:05
On Sun, Oct 13, 2002 at 12:09:10AM -0700, Johnny C. Lam wrote:
> On Sat, Oct 12, 2002 at 10:34:00PM +0200, Manuel Bouyer wrote:
> >  
> > @@ -21,9 +23,11 @@
> >  	${SED} -e 's:PREFIX:'${PREFIX}':g' \
> >  		${WRKSRC}/config.sh.orig > ${WRKSRC}/config.sh.tmp
> >  	${SED} -e 's:LOCALBASE:'${LOCALBASE}':g' \
> > -		${WRKSRC}/config.sh.tmp > ${WRKSRC}/config.sh
> > +		${WRKSRC}/config.sh.tmp > ${WRKSRC}/config.sh.tmp2
> > +	${SED} -e 's:@CC@:'${CC}':g' \
> 
> This needs to be 's:@CC@:'${BUILDLINK_CC}':g' if you really wish to
> replace @CC@, but this shouldn't be necessary with buildlink2.  The
> "cc" wrapper script will wrap ${CC}, which for pkgsrc is GNU cc.

The problem is that in the configure script, this wrapper is not
called (I don't know why), which makes some tests fail.
Remplacing it with BUILDLINK_CC does work too.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--