pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/Xrender Turn on ANSI when compiling with SunPro to...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/71967161df2a
branches:  trunk
changeset: 483368:71967161df2a
user:      sketch <sketch%pkgsrc.org@localhost>
date:      Thu Nov 11 13:47:32 2004 +0000

description:
Turn on ANSI when compiling with SunPro to work around certain revisions of
OpenWindows headers which incorrectly check __STDC__ and lead to macro
concatenation breakage with the SunPro compiler.

diffstat:

 x11/Xrender/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 3502c8a17af5 -r 71967161df2a x11/Xrender/Makefile
--- a/x11/Xrender/Makefile      Thu Nov 11 13:32:06 2004 +0000
+++ b/x11/Xrender/Makefile      Thu Nov 11 13:47:32 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2004/10/03 00:18:28 tv Exp $
+# $NetBSD: Makefile,v 1.20 2004/11/11 13:47:32 sketch Exp $
 
 DISTNAME=      libXrender-0.8.4
 PKGNAME=       ${DISTNAME:S/lib//}
@@ -18,6 +18,12 @@
 GNU_CONFIGURE=         YES
 PKGCONFIG_OVERRIDE=    xrender.pc.in
 
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Msunpro)
+CFLAGS+=       -Xc
+.endif
+
 BUILDLINK_DEPENDS.render+=     render>=0.8
 
 .include "../../devel/pkgconfig/buildlink3.mk"



Home | Main Index | Thread Index | Old Index