summaryrefslogtreecommitdiff
path: root/mk/compiler.mk
diff options
context:
space:
mode:
authorjlam <jlam>2004-11-28 21:32:47 +0000
committerjlam <jlam>2004-11-28 21:32:47 +0000
commit288125acc3519d2c99d6cabc10a8ad88bad3f43b (patch)
treef4be567326b5bda28e1bc74bce7ca854c4efbd0a /mk/compiler.mk
parent5e3e67b250750d732b9a44759359c29f86e707d9 (diff)
downloadpkgsrc-288125acc3519d2c99d6cabc10a8ad88bad3f43b.tar.gz
Set initial values for PKG_{CC,CPP,CXX,FC} which are used within the
${compiler}.mk files to discover the short names of the compilers. This allows ccache.mk to properly create symlinks when CC is set explicitly within /etc/mk.conf.
Diffstat (limited to 'mk/compiler.mk')
-rw-r--r--mk/compiler.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index 24ae0432ddf..e71cebda1da 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.38 2004/11/22 22:24:47 wiz Exp $
+# $NetBSD: compiler.mk,v 1.39 2004/11/28 21:32:47 jlam Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -117,6 +117,14 @@ _PKGSRC_COMPILER:= ${_compiler_} ${_PKGSRC_COMPILER}
.endfor
_PKGSRC_COMPILER:= ${_COMPILER} ${_PKGSRC_COMPILER}
+# Set initial values for PKG_{CC,CPP,CXX,FC} which are used within the
+# ${compiler}.mk files to discover the short names of the compilers.
+#
+PKG_CC:= ${CC}
+PKG_CPP:= ${CPP}
+PKG_CXX:= ${CXX}
+PKG_FC:= ${FC}
+
.for _compiler_ in ${_PKGSRC_COMPILER}
. include "../../mk/compiler/${_compiler_}.mk"
.endfor