pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/gtk2 turn on strict ISO C compliance when building...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f35df34355d5
branches: trunk
changeset: 475467:f35df34355d5
user: grant <grant%pkgsrc.org@localhost>
date: Sun May 16 08:10:41 2004 +0000
description:
turn on strict ISO C compliance when building with SunPro as workaround a
gnome bug.
diffstat:
x11/gtk2/Makefile | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 1ee3b73fb6ed -r f35df34355d5 x11/gtk2/Makefile
--- a/x11/gtk2/Makefile Sun May 16 03:34:23 2004 +0000
+++ b/x11/gtk2/Makefile Sun May 16 08:10:41 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.51 2004/05/07 01:14:51 xtraeme Exp $
+# $NetBSD: Makefile,v 1.52 2004/05/16 08:10:41 grant Exp $
#
DISTNAME= gtk+-2.4.1
@@ -45,6 +45,17 @@
{ print "@unexec $${RMDIR} %D/" $$2 \
" 2>/dev/null || $${TRUE}"; next; }
+.include "../../mk/compiler.mk"
+
+# work around /**/ in a macro definition in X11/Xlibint.h (GetEmptyReq)
+# being expanded to a space, causing breakage in gdk/x11/gdkasync.c.
+#
+# turning on strict ISO C compliance uses a different macro definition
+# which uses ## instead and does what it should.
+.if !empty(CC_VERSION:MSun)
+CPPFLAGS+= -Xc
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/gtk-2.0/engines
${INSTALL_DATA_DIR} ${PREFIX}/lib/gtk-2.0/modules
Home |
Main Index |
Thread Index |
Old Index