summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-02-11 15:12:39 +0000
committertnn <tnn@pkgsrc.org>2008-02-11 15:12:39 +0000
commit017ce50be9228be9f346be83a796d372af76bd7d (patch)
treec31f9a6452d81d3dd514583bef5c9d12ccc67706
parentde10e7d82dd18c381f347d4a593e8bbabacb8a01 (diff)
downloadpkgsrc-017ce50be9228be9f346be83a796d372af76bd7d.tar.gz
${CC} -E is a better default choice for CPP than "cpp".
Prevents many packages from failing with "c preprocessor fails sanity check."
-rw-r--r--pkgtools/bootstrap-mk-files/files/mods/SunOS.sys.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/bootstrap-mk-files/files/mods/SunOS.sys.mk b/pkgtools/bootstrap-mk-files/files/mods/SunOS.sys.mk
index db5765b78db..6b63aa62a1d 100644
--- a/pkgtools/bootstrap-mk-files/files/mods/SunOS.sys.mk
+++ b/pkgtools/bootstrap-mk-files/files/mods/SunOS.sys.mk
@@ -1,4 +1,4 @@
-# $NetBSD: SunOS.sys.mk,v 1.1.1.1 2006/07/14 23:13:01 jlam Exp $
+# $NetBSD: SunOS.sys.mk,v 1.2 2008/02/11 15:12:39 tnn Exp $
# NetBSD: sys.mk,v 1.58 2000/08/22 17:38:49 bjh21 Exp
# @(#)sys.mk 8.2 (Berkeley) 3/21/94
@@ -40,7 +40,7 @@ OBJCFLAGS?= ${CFLAGS}
COMPILE.m?= ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} -c
LINK.m?= ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} ${LDFLAGS}
-CPP?= cpp
+CPP?= ${CC} -E
.if defined(NETBSD_COMPATIBLE)
CPPFLAGS?= -I${BSDDIR}/include -D__EXTENSIONS__ -D_XPG4_2 -DSUNOS_5
HOST_CPPFLAGS?= ${CPPFLAGS}