Subject: pkgtools/libnbcompat/ uses wrong CC
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 02/15/2005 11:37:45
pkgtools/libnbcompat/ has:

        ${_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/ wrong CC?

I tried adding to beginning of pkgtools/libnbcompat/ the

.include "../../mk/"

Also, I see from debugging that _CC is correctly set, but I don't know
what that is for.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links