pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ruby25-base ruby does not like -fomit-frame-point...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f51e659113c1
branches: trunk
changeset: 389179:f51e659113c1
user: roy <roy%pkgsrc.org@localhost>
date: Sat Dec 22 03:53:24 2018 +0000
description:
ruby does not like -fomit-frame-pointer on NetBSD/aarch64
diffstat:
lang/ruby25-base/hacks.mk | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r afc12565f716 -r f51e659113c1 lang/ruby25-base/hacks.mk
--- a/lang/ruby25-base/hacks.mk Sat Dec 22 03:11:56 2018 +0000
+++ b/lang/ruby25-base/hacks.mk Sat Dec 22 03:53:24 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2018/01/08 14:19:06 taca Exp $
+# $NetBSD: hacks.mk,v 1.2 2018/12/22 03:53:24 roy Exp $
.if !defined(RUBY24_BASE_HACKS_MK)
RUBY24_BASE_HACKS_MK= defined
@@ -34,4 +34,11 @@
BUILDLINK_TRANSFORM+= opt:-Os:-O1 rm:-freorder-blocks
.endif
+# On NetBSD/aarch64, gcc optimisation produces segmentation faulting
+# miniruby binary.
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64) && !empty(CC_VERSION:Mgcc-6.5.*)
+PKG_HACKS+= optimisation
+BUILDLINK_TRANSFORM+= rm:-fomit-frame-pointer
+.endif
+
.endif # RUBY24_BASE_HACKS_MK
Home |
Main Index |
Thread Index |
Old Index