pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/libXaw Add hacks.mk file to build with -fno-strict...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bb83cce4b60e
branches: trunk
changeset: 538115:bb83cce4b60e
user: bjs <bjs%pkgsrc.org@localhost>
date: Tue Jan 29 03:57:36 2008 +0000
description:
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:
x11/libXaw/Makefile | 3 ++-
x11/libXaw/hacks.mk | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r f7e340ea0bf1 -r bb83cce4b60e x11/libXaw/Makefile
--- a/x11/libXaw/Makefile Tue Jan 29 03:50:47 2008 +0000
+++ b/x11/libXaw/Makefile Tue Jan 29 03:57:36 2008 +0000
@@ -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 -r f7e340ea0bf1 -r bb83cce4b60e x11/libXaw/hacks.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/libXaw/hacks.mk Tue Jan 29 03:57:36 2008 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index