diff options
author | bjs <bjs@pkgsrc.org> | 2007-09-21 18:06:28 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2007-09-21 18:06:28 +0000 |
commit | b8363a3146bfd2f1c0f10297a5127b7d0ffd7553 (patch) | |
tree | 08f4a97dfe1aad4148d4a75174e3a747b0e6ee64 /lang | |
parent | 6d313e853b7383e2e85837309a2776f4f78dfb39 (diff) | |
download | pkgsrc-b8363a3146bfd2f1c0f10297a5127b7d0ffd7553.tar.gz |
Add -fno-strict-aliasing to CFLAGS for ${CC_VERSION:Mgcc-[34]*}. Bump rev.
ok'd by wiz@
Diffstat (limited to 'lang')
-rw-r--r-- | lang/spidermonkey/Makefile | 3 | ||||
-rw-r--r-- | lang/spidermonkey/hacks.mk | 11 |
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 |