pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Set initial values for PKG_{CC,CPP,CXX,FC} which ar...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d4a224ebfd0e
branches:  trunk
changeset: 484655:d4a224ebfd0e
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Nov 28 21:32:47 2004 +0000

description:
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:

 mk/compiler.mk |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r a952dba27149 -r d4a224ebfd0e mk/compiler.mk
--- a/mk/compiler.mk    Sun Nov 28 20:32:15 2004 +0000
+++ b/mk/compiler.mk    Sun Nov 28 21:32:47 2004 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index