summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authortsutsui <tsutsui>2012-01-19 13:32:05 +0000
committertsutsui <tsutsui>2012-01-19 13:32:05 +0000
commite2ca398aecd52ad832b4e2a51a44989c330b7f62 (patch)
tree142a9609222937272f1b9f2fa09a0ca2bb6e16c6 /devel
parentd8676a4dc2b7a170c6a601ea144882c7ebad7955 (diff)
downloadpkgsrc-e2ca398aecd52ad832b4e2a51a44989c330b7f62.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')
-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