diff options
author | markd <markd@pkgsrc.org> | 2006-11-16 02:42:13 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2006-11-16 02:42:13 +0000 |
commit | 4beda37608b7a5d1cb4a64a396f6e76da3816700 (patch) | |
tree | 17a782a65dd57ae095f7038059bf053459df0e76 /mk/compiler.mk | |
parent | 7b8b536d67c537c90d9a72b1c8378035f6534016 (diff) | |
download | pkgsrc-4beda37608b7a5d1cb4a64a396f6e76da3816700.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.mk | 6 |
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. # |