summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-07-23 20:13:47 +0000
committerjmc <jmc@pkgsrc.org>2003-07-23 20:13:47 +0000
commit0357645827815f33185150b576ec69f72be07f7f (patch)
tree685fb6250d049baedbb992600b9af8dbbbaaed7e /mk
parentd463430f96a4bba452d1391757d9cf75a2c69dc6 (diff)
downloadpkgsrc-0357645827815f33185150b576ec69f72be07f7f.tar.gz
If CPP is set (via sys.mk) and not fully qualified in it's pathname, reset it
to the fully qualified path name to avoid rpcgen bugs with undocumented usage of CPP.
Diffstat (limited to 'mk')
-rw-r--r--mk/defs.NetBSD.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/defs.NetBSD.mk b/mk/defs.NetBSD.mk
index 3d0635425f5..edc4a79105c 100644
--- a/mk/defs.NetBSD.mk
+++ b/mk/defs.NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.NetBSD.mk,v 1.49 2003/06/06 17:13:31 drochner Exp $
+# $NetBSD: defs.NetBSD.mk,v 1.50 2003/07/23 20:13:47 jmc Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -10,6 +10,10 @@ CHOWN?= /usr/sbin/chown
CHGRP?= /usr/bin/chgrp
CMP?= /usr/bin/cmp
CP?= /bin/cp
+# Needed for 1.6.1 and earlier due to rpcgen bugs and paths
+.if defined(CPP) && ${CPP} == "cpp"
+CPP= /usr/bin/cpp
+.endif
CUT?= /usr/bin/cut
DATE?= /bin/date
DC?= /usr/bin/dc