From bffae15fa1b4c9e6df87f81d90ac4607803972b1 Mon Sep 17 00:00:00 2001 From: sketch Date: Thu, 11 Nov 2004 13:47:32 +0000 Subject: 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. --- x11/Xrender/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'x11/Xrender') diff --git a/x11/Xrender/Makefile b/x11/Xrender/Makefile index 39e1ff337cb..3c86ff38a10 100644 --- a/x11/Xrender/Makefile +++ b/x11/Xrender/Makefile @@ -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 @@ USE_LIBTOOL= YES 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" -- cgit v1.2.3