summaryrefslogtreecommitdiff
path: root/x11/libXaw
diff options
context:
space:
mode:
authorbjs <bjs@pkgsrc.org>2008-01-29 03:57:36 +0000
committerbjs <bjs@pkgsrc.org>2008-01-29 03:57:36 +0000
commitcf411c9a516b9f384b9aed85db9ece8bb417c3c0 (patch)
treeee4a7548728592ae23d389578859025afef56838 /x11/libXaw
parentf12dd9bc4c619b4b8bcc227cd76c8ab19a55fa8a (diff)
downloadpkgsrc-cf411c9a516b9f384b9aed85db9ece8bb417c3c0.tar.gz
Add hacks.mk file to build with -fno-strict-aliasing with gcc 3.0+.
There were a significant amount of warnings, and it's more important for this library to be reliable than it is for it to be as fast as possible. Bump rev.
Diffstat (limited to 'x11/libXaw')
-rw-r--r--x11/libXaw/Makefile3
-rw-r--r--x11/libXaw/hacks.mk13
2 files changed, 15 insertions, 1 deletions
diff --git a/x11/libXaw/Makefile b/x11/libXaw/Makefile
index f9f95cdbb1d..17db10512cd 100644
--- a/x11/libXaw/Makefile
+++ b/x11/libXaw/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2008/01/15 23:16:49 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2008/01/29 03:57:36 bjs Exp $
#
DISTNAME= libXaw-1.0.4
+PKGREVISION= 1
CATEGORIES= graphics x11
MASTER_SITES= http://xorg.freedesktop.org/releases/individual/lib/
EXTRACT_SUFX= .tar.bz2
diff --git a/x11/libXaw/hacks.mk b/x11/libXaw/hacks.mk
new file mode 100644
index 00000000000..3f7202cec38
--- /dev/null
+++ b/x11/libXaw/hacks.mk
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1 2008/01/29 03:57:36 bjs Exp $
+
+.if !defined(LIBXAW_HACKS_MK)
+LIBXAW_HACKS_MK= # defined
+
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc-[34]*)
+CFLAGS+= -fno-strict-aliasing
+PKG_HACKS+= no-strict-aliasing
+.endif
+
+.endif