summaryrefslogtreecommitdiff
path: root/lang/spidermonkey
diff options
context:
space:
mode:
authorbjs <bjs>2007-09-21 18:06:28 +0000
committerbjs <bjs>2007-09-21 18:06:28 +0000
commit00c8def67047942350ba083d5e8147fcfa314fe5 (patch)
tree08f4a97dfe1aad4148d4a75174e3a747b0e6ee64 /lang/spidermonkey
parent05bf0f8f0b12284545b1993bc0bc5e05f10c7abd (diff)
downloadpkgsrc-00c8def67047942350ba083d5e8147fcfa314fe5.tar.gz
Add -fno-strict-aliasing to CFLAGS for ${CC_VERSION:Mgcc-[34]*}. Bump rev.
ok'd by wiz@
Diffstat (limited to 'lang/spidermonkey')
-rw-r--r--lang/spidermonkey/Makefile3
-rw-r--r--lang/spidermonkey/hacks.mk11
2 files changed, 13 insertions, 1 deletions
diff --git a/lang/spidermonkey/Makefile b/lang/spidermonkey/Makefile
index 7a871e7ee47..415a2f945a9 100644
--- a/lang/spidermonkey/Makefile
+++ b/lang/spidermonkey/Makefile
@@ -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 --git a/lang/spidermonkey/hacks.mk b/lang/spidermonkey/hacks.mk
new file mode 100644
index 00000000000..be5e1587ff3
--- /dev/null
+++ b/lang/spidermonkey/hacks.mk
@@ -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