summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-11-28 21:32:47 +0000
committerjlam <jlam@pkgsrc.org>2004-11-28 21:32:47 +0000
commitc88ff0fa15b0e56000567f9b5936dd4b3a8583cc (patch)
treef4be567326b5bda28e1bc74bce7ca854c4efbd0a /mk
parent384f5495c5eb1770f0667b6e0702df64405afe57 (diff)
downloadpkgsrc-c88ff0fa15b0e56000567f9b5936dd4b3a8583cc.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')
-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