Subject: Re: pkgtools/libnbcompat/inplace.mk uses wrong CC
To: Todd Vierling <tv@duh.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 02/15/2005 14:37:19
On Tue, 15 Feb 2005, Todd Vierling wrote:

> > Does anyone know where CC is set to just gcc? And why does
> > pkgtools/libnbcompat/inplace.mk wrong CC?
>
> The compiler wrappers strip the pathname from CC in order to intercept calls
> to the compiler.  The underlying implementation in ${WRKDIR}/.gcc/bin should
> end up indirecting to the real pathname you supplied.

I don't have a ${WRKDIR}/.gcc/

And it is not under ${WRKDIR}/.wrapper and my
work/.wrapper/.wrapper_CC_done is empty.

The above is for pkgtools/pkg_install.

Other packages (such as x11/py-qt3-base) do have work/.gcc/bin/gcc:

#!/bin/ksh
exec /usr/pkg/gcc3/bin/gcc "$@"

Is the problem caused by NO_BUILDLINK=           # defined ?

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/