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

> pkgtools/libnbcompat/inplace.mk has:
>
> libnbcompat-build:
>         ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}                       \
>         cd ${LIBNBCOMPAT_SRCDIR} && ${SETENV}                           \
>                 AWK="${AWK}" CC="${CC}" CFLAGS="${CFLAGS:M*}"           \
>                 CPPFLAGS="${CPPFLAGS:M*}"                               \
>                 ${CONFIGURE_ENV:NLIBS=*} ${CONFIG_SHELL}                \
>                 ${CONFIGURE_SCRIPT} && ${MAKE_PROGRAM}
>
>
> But the CC is "gcc". show-var target correctly shows my correct path to my
> C compiler (as set in mmk.conf) and works for other builds.
>
> 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.

-- 
-- Todd Vierling <tv@duh.org> <tv@pobox.com>