summaryrefslogtreecommitdiff
path: root/mk/compiler.mk
diff options
context:
space:
mode:
authormarkd <markd>2006-11-16 02:42:13 +0000
committermarkd <markd>2006-11-16 02:42:13 +0000
commit2f487ea9158a81b3a808ace5bb2df8a602903727 (patch)
tree17a782a65dd57ae095f7038059bf053459df0e76 /mk/compiler.mk
parent65f8c505e8d2bbdb097994a5066cffca1f303034 (diff)
downloadpkgsrc-2f487ea9158a81b3a808ace5bb2df8a602903727.tar.gz
Allow CPP to be set to something not on the PATH (as used to work in
pre wrapper days). Especially useful for Solaris where cpp tends to live in /usr/css/lib/cpp.
Diffstat (limited to 'mk/compiler.mk')
-rw-r--r--mk/compiler.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index 04b2092c654..158dc65ed13 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.55 2006/07/27 20:07:06 joerg Exp $
+# $NetBSD: compiler.mk,v 1.56 2006/11/16 02:42:13 markd Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -127,6 +127,10 @@ _COMPILER_STRIP_VARS= # empty
.endfor
.undef _compiler_
+.if !defined(PKG_CPP)
+PKG_CPP:=${CPP}
+.endif
+
# Strip the leading paths from the toolchain variables since we manipulate
# the PATH to use the correct executable.
#