pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ruby193-base Add a workaround hack for gcc failur...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9971fdc1f5b6
branches: trunk
changeset: 602301:9971fdc1f5b6
user: tsutsui <tsutsui%pkgsrc.org@localhost>
date: Tue Apr 10 14:12:50 2012 +0000
description:
Add a workaround hack for gcc failure on NetBSD/sh3el 6.0_BETA.
diffstat:
lang/ruby193-base/hacks.mk | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r a2d5c25b727e -r 9971fdc1f5b6 lang/ruby193-base/hacks.mk
--- a/lang/ruby193-base/hacks.mk Tue Apr 10 14:00:36 2012 +0000
+++ b/lang/ruby193-base/hacks.mk Tue Apr 10 14:12:50 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1.1.1 2011/11/08 16:10:51 taca Exp $
+# $NetBSD: hacks.mk,v 1.2 2012/04/10 14:12:50 tsutsui Exp $
.if !defined(RUBY19_BASE_HACKS_MK)
RUBY19_BASE_HACKS_MK= defined
@@ -18,4 +18,13 @@
. endif
.endif
+# On NetBSD/sh3el 6.0, the default -Os causes an error on compiling node.c:
+# {standard input}: Assembler messages: {standard input}:1458: \
+# Error: pcrel too far
+# and -O1 works around.
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-sh3*) && !empty(CC_VERSION:Mgcc-4.5.*)
+PKG_HACKS+= optimisation
+BUILDLINK_TRANSFORM+= rename:-Os:-O1 rm:-freorder-blocks
+.endif
+
.endif # RUBY19_BASE_HACKS_MK
Home |
Main Index |
Thread Index |
Old Index