summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/ruby193-base/hacks.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/ruby193-base/hacks.mk b/lang/ruby193-base/hacks.mk
index 2385ace02dc..102168eb403 100644
--- a/lang/ruby193-base/hacks.mk
+++ b/lang/ruby193-base/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.3 2012/06/02 02:14:39 taca Exp $
+# $NetBSD: hacks.mk,v 1.4 2012/07/14 03:35:48 tsutsui Exp $
.if !defined(RUBY193_BASE_HACKS_MK)
RUBY19_BASE_HACKS_MK= defined
@@ -16,6 +16,13 @@ RUBY19_BASE_HACKS_MK= defined
PKG_HACKS+= optimisation
BUILDLINK_TRANSFORM+= rm:-O[0-9]*
. endif
+### ruby193 binary built on NetBSD/sparc64 with gcc 4.5.1 and the default -O2
+### dumps core during generating RDocs.
+### Using -O1 works around.
+. if !empty(CC_VERSION:Mgcc-4.5.*)
+PKG_HACKS+= optimisation
+BUILDLINK_TRANSFORM+= rename:-O2:-O1
+. endif
.endif
# On NetBSD/sh3el 6.0, the default -Os causes an error on compiling node.c: