pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/spidermonkey Add -fno-strict-aliasing to CFLAGS f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f7d24568327e
branches:  trunk
changeset: 533587:f7d24568327e
user:      bjs <bjs%pkgsrc.org@localhost>
date:      Fri Sep 21 18:06:28 2007 +0000

description:
Add -fno-strict-aliasing to CFLAGS for ${CC_VERSION:Mgcc-[34]*}.  Bump rev.

ok'd by wiz@

diffstat:

 lang/spidermonkey/Makefile |   3 ++-
 lang/spidermonkey/hacks.mk |  11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 0bdccf17192a -r f7d24568327e lang/spidermonkey/Makefile
--- a/lang/spidermonkey/Makefile        Fri Sep 21 18:01:30 2007 +0000
+++ b/lang/spidermonkey/Makefile        Fri Sep 21 18:06:28 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2007/08/12 03:04:32 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2007/09/21 18:06:28 bjs Exp $
 
 DISTNAME=      js-1.60
 PKGNAME=       ${DISTNAME:S/js/spidermonkey/}
+PKGREVISION=   1
 CATEGORIES=    lang
 MASTER_SITES=  ${MASTER_SITE_MOZILLA:=js/}
 
diff -r 0bdccf17192a -r f7d24568327e lang/spidermonkey/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey/hacks.mk        Fri Sep 21 18:06:28 2007 +0000
@@ -0,0 +1,11 @@
+.if !defined(SPIDERMONKEY_HACKS_MK)
+SPIDERMONKEY_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