summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortsutsui <tsutsui>2012-07-14 03:35:48 +0000
committertsutsui <tsutsui>2012-07-14 03:35:48 +0000
commitdc3a5c51eae81d26209833c270b9da6e96298a47 (patch)
treeec423647aec0b26224e6e55fbe3b07a175f63099 /lang
parentcd83a3dcd530c1e030ca1f59e8073359adf7a4f9 (diff)
downloadpkgsrc-dc3a5c51eae81d26209833c270b9da6e96298a47.tar.gz
Add workaround for build failure on NetBSD/sparc64 6.0_BETA2:
> ruby193 binary built on NetBSD/sparc64 with gcc 4.5.1 and the default -O2 > dumps core during generating RDocs. > Using -O1 works around. ruby193 binary with this hacks.mk is confirmed by running net/mikutter on Ultra5.
Diffstat (limited to 'lang')
-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: