pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ruby24-base ruby does not like -fomit-frame-point...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/afc12565f716
branches:  trunk
changeset: 389178:afc12565f716
user:      roy <roy%pkgsrc.org@localhost>
date:      Sat Dec 22 03:11:56 2018 +0000

description:
ruby does not like -fomit-frame-pointer on NetBSD/aarch64

diffstat:

 lang/ruby24-base/hacks.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 1d4ab1a23bcf -r afc12565f716 lang/ruby24-base/hacks.mk
--- a/lang/ruby24-base/hacks.mk Sat Dec 22 01:13:52 2018 +0000
+++ b/lang/ruby24-base/hacks.mk Sat Dec 22 03:11:56 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2017/06/18 13:45:11 taca Exp $
+# $NetBSD: hacks.mk,v 1.2 2018/12/22 03:11:56 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