summaryrefslogtreecommitdiff
path: root/mk/defs.Darwin.mk
diff options
context:
space:
mode:
authordanw <danw@pkgsrc.org>2004-05-04 00:11:23 +0000
committerdanw <danw@pkgsrc.org>2004-05-04 00:11:23 +0000
commit04e155628682ceb40e6d1bc08ff0df22b8929681 (patch)
tree6da32a864ae8ae41f5329b6933430e0a5d14d8cf /mk/defs.Darwin.mk
parentc27bf07cb0fbbadb0dd51fa483f69a31340d6436 (diff)
downloadpkgsrc-04e155628682ceb40e6d1bc08ff0df22b8929681.tar.gz
/usr/bin/cpp on darwin is a wrapper script that forces the
-traditional flag; you need to use "gcc -E" to get sane behavior. Override sys.mk's definition of CPP in defs.Darwin.mk, and don't re-override CPP in gcc.mk if ${OPSYS} == Darwin.
Diffstat (limited to 'mk/defs.Darwin.mk')
-rw-r--r--mk/defs.Darwin.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/defs.Darwin.mk b/mk/defs.Darwin.mk
index 8b660d7be2a..ddfa32af6c2 100644
--- a/mk/defs.Darwin.mk
+++ b/mk/defs.Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Darwin.mk,v 1.72 2004/04/27 13:43:05 tv Exp $
+# $NetBSD: defs.Darwin.mk,v 1.73 2004/05/04 00:11:23 danw Exp $
#
# Variable definitions for the Darwin operating system.
@@ -10,6 +10,9 @@ CHOWN?= /usr/sbin/chown
CHGRP?= /usr/bin/chgrp
CMP?= /usr/bin/cmp
CP?= /bin/cp
+.if !defined(CPP) || ${CPP} == "cpp"
+CPP= ${CC} -E ${CPP_PRECOMP_FLAGS}
+.endif
CUT?= /usr/bin/cut
DATE?= /bin/date
DC?= /usr/bin/dc