summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-10 22:33:47 +0000
committerjlam <jlam>2004-02-10 22:33:47 +0000
commit71952e0c62422501fd2b2f68900da179b3861603 (patch)
tree2d16b03388a2b292a2072b0a8e245ad23aa6f713
parent8c9cf7be2e3f550f132ca75404d89fc71447c8ee (diff)
downloadpkgsrc-71952e0c62422501fd2b2f68900da179b3861603.tar.gz
The values of CC are CC_VERSION are redundant. Just use CC_VERSION. We
record it only if the package actually used the compiler.
-rw-r--r--mk/bsd.pkg.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index a37de88ce52..f6aed56fe75 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1384 2004/02/10 02:18:04 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1385 2004/02/10 22:33:47 jlam Exp $
#
# This file is in the public domain.
#
@@ -4699,8 +4699,9 @@ fake-pkg: ${PLIST} ${DESCR} ${MESSAGE}
. for def in ${BUILD_DEFS}
@${ECHO} ${def}=${${def}:Q} | ${SED} -e 's|^PATH=[^ ]*|PATH=...|' >> ${BUILD_INFO_FILE}
. endfor
- @${ECHO} "CC=${CC}" >> ${BUILD_INFO_FILE}
+. if !empty(USE_LANGUAGES)
@${ECHO} "CC_VERSION=${CC_VERSION}" >> ${BUILD_INFO_FILE}
+. endif
. if defined(USE_PERL5) && (${USE_PERL5} == "run")
@${ECHO} "PERL=`${PERL5} --version 2>/dev/null | ${GREP} 'This is perl'`" >> ${BUILD_INFO_FILE}
. endif