summaryrefslogtreecommitdiff
path: root/mk/platform/Darwin.mk
diff options
context:
space:
mode:
authortron <tron>2008-01-30 22:57:31 +0000
committertron <tron>2008-01-30 22:57:31 +0000
commita2fe9117d3e12c926d358c6a2554c55547469f74 (patch)
tree7a34af8c17f63cda4288874493e3169024fc03a7 /mk/platform/Darwin.mk
parentcc81da640c1c6f80f3376ed4f1b861e1374f1d35 (diff)
downloadpkgsrc-a2fe9117d3e12c926d358c6a2554c55547469f74.tar.gz
Try to fix PR pkg/26143 with caution:
- Set "CC" to "gcc -isystem /usr/include" during bootstrap. - Add "-isystem /usr/include" to the Darwin specific "CPPFLAGS".
Diffstat (limited to 'mk/platform/Darwin.mk')
-rw-r--r--mk/platform/Darwin.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index a5395bdf237..6185c540290 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.28 2007/12/16 12:36:28 tron Exp $
+# $NetBSD: Darwin.mk,v 1.29 2008/01/30 22:57:42 tron Exp $
#
# Variable definitions for the Darwin operating system.
@@ -24,7 +24,9 @@ IMAKEOPTS+= -DInstallFlags=-c # do not set user or group
.endif
.if !defined(PKGSRC_COMPILER) || !empty(PKGSRC_COMPILER:Mgcc)
-CPP_PRECOMP_FLAGS?= -no-cpp-precomp # use the GNU cpp, not the OS X cpp
+# Use the GNU cpp, not the OS X cpp, don't look in "/usr/local/include"
+# before "/usr/include".
+CPP_PRECOMP_FLAGS?= -no-cpp-precomp -isystem /usr/include
.endif
DEF_UMASK?= 0022
DEFAULT_SERIAL_DEVICE?= /dev/null