Source-Changes-HG archive

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

[src/trunk]: src/share/mk pcc cpp(1) does not understand the '-undef' and '-t...



details:   https://anonhg.NetBSD.org/src/rev/3789e686cc52
branches:  trunk
changeset: 769163:3789e686cc52
user:      plunky <plunky%NetBSD.org@localhost>
date:      Thu Sep 01 16:41:48 2011 +0000

description:
pcc cpp(1) does not understand the '-undef' and '-traditional' long form
arguments, use $(CC) -E instead of $(CPP) for these

diffstat:

 share/mk/bsd.x11.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b210e8b6dd2e -r 3789e686cc52 share/mk/bsd.x11.mk
--- a/share/mk/bsd.x11.mk       Thu Sep 01 16:23:55 2011 +0000
+++ b/share/mk/bsd.x11.mk       Thu Sep 01 16:41:48 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.x11.mk,v 1.101 2011/08/02 07:44:39 mrg Exp $
+#      $NetBSD: bsd.x11.mk,v 1.102 2011/09/01 16:41:48 plunky Exp $
 
 .include <bsd.init.mk>
 
@@ -187,7 +187,7 @@
 .cpp:
        ${_MKTARGET_CREATE}
        rm -f ${.TARGET}
-       ${CPP} -undef -traditional \
+       ${CC} -E -undef -traditional - \
            ${CPPSCRIPTFLAGS_${.TARGET}:U${CPPSCRIPTFLAGS}} \
            < ${.IMPSRC} | ${X11TOOL_UNXCOMM} > ${.TARGET}
 
@@ -414,7 +414,7 @@
 _X11MANTRANSFORMCMD=   ${TOOL_SED} -e 's/\\$$/\\ /' ${.IMPSRC}
 
 .if ${X11MANCPP} != "no"
-_X11MANTRANSFORMCMD+=  | ${CPP} -undef -traditional
+_X11MANTRANSFORMCMD+=  | ${CC} -E -undef -traditional -
 . for __def__ __value__ in ${_X11MANTRANSFORM}
 _X11MANTRANSFORMCMD+=  -D${__def__}=${__value__:C/%/ /gW}
 . endfor



Home | Main Index | Thread Index | Old Index