pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Allow CPP to be set to something not on the PATH (a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6b7dcf60386
branches:  trunk
changeset: 521648:c6b7dcf60386
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Nov 16 02:42:13 2006 +0000

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

 mk/compiler.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 182bed11da2b -r c6b7dcf60386 mk/compiler.mk
--- a/mk/compiler.mk    Thu Nov 16 02:37:34 2006 +0000
+++ b/mk/compiler.mk    Thu Nov 16 02:42:13 2006 +0000
@@ -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 @@
 .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.
 #



Home | Main Index | Thread Index | Old Index