summaryrefslogtreecommitdiff
path: root/devel/bison
diff options
context:
space:
mode:
authortsutsui <tsutsui>2012-01-19 13:32:05 +0000
committertsutsui <tsutsui>2012-01-19 13:32:05 +0000
commitebab261df11d9cc5486696740dcacd7622f4d790 (patch)
tree142a9609222937272f1b9f2fa09a0ca2bb6e16c6 /devel/bison
parent0b96b3219635392bcff22602115f0f77989c1b91 (diff)
downloadpkgsrc-ebab261df11d9cc5486696740dcacd7622f4d790.tar.gz
Add workaround optimization hacks for bison that dumps core in net/libIDL
on NetBSD/arm -current with gcc-4.5.3. PR pkg/45834 Bump PKGREVISION.
Diffstat (limited to 'devel/bison')
-rw-r--r--devel/bison/Makefile4
-rw-r--r--devel/bison/hacks.mk9
2 files changed, 10 insertions, 3 deletions
diff --git a/devel/bison/Makefile b/devel/bison/Makefile
index 8b4923e8099..76153b01ccd 100644
--- a/devel/bison/Makefile
+++ b/devel/bison/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.80 2012/01/15 13:19:29 obache Exp $
+# $NetBSD: Makefile,v 1.81 2012/01/19 13:32:05 tsutsui Exp $
DISTNAME= bison-2.5
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=bison/}
EXTRACT_SUFX= .tar.bz2
diff --git a/devel/bison/hacks.mk b/devel/bison/hacks.mk
index 53ebcc33cdd..d910b96d72d 100644
--- a/devel/bison/hacks.mk
+++ b/devel/bison/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.2 2007/02/22 19:26:20 wiz Exp $
+# $NetBSD: hacks.mk,v 1.3 2012/01/19 13:32:05 tsutsui Exp $
.if !defined(BISON_HACKS_MK)
BISON_HACKS_MK= defined
@@ -15,4 +15,11 @@ PKG_HACKS+= optimisation
BUILDLINK_TRANSFORM+= rm:-O[0-9]*
.endif
+### gcc-4.5.3 in NetBSD/arm 5.99.59 also breaks bison in net/libIDL.
+### -O seems enough for workaround in this case.
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-arm) && !empty(CC_VERSION:Mgcc-4.5.*)
+PKG_HACKS+= optimisation
+BUILDLINK_TRANSFORM+= rename:-O[0-9]*:-O
+.endif
+
.endif # BISON_HACKS_MK