diff options
author | jlam <jlam> | 2004-11-28 21:32:47 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-11-28 21:32:47 +0000 |
commit | 111a0bd6677e33bd1103a73f5d6eb483072fbe52 (patch) | |
tree | f4be567326b5bda28e1bc74bce7ca854c4efbd0a /mk | |
parent | 3c4904f1ede4d87c150aea073935b072f1e3814f (diff) | |
download | pkgsrc-111a0bd6677e33bd1103a73f5d6eb483072fbe52.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.mk | 10 |
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 |