summaryrefslogtreecommitdiff
path: root/lang/ruby30-base
diff options
context:
space:
mode:
authormrg <mrg@pkgsrc.org>2021-04-25 07:23:09 +0000
committermrg <mrg@pkgsrc.org>2021-04-25 07:23:09 +0000
commitee55e870d4a6eb0635e0e97ce24dcbdacfab7f0c (patch)
tree737c557d9ca8dec24dce5136a027c3e782583978 /lang/ruby30-base
parent5554e769178b8200c11eff07609edb8612c623bd (diff)
downloadpkgsrc-ee55e870d4a6eb0635e0e97ce24dcbdacfab7f0c.tar.gz
extend the arm64 vs GCC hack to arm64eb, but also disable it from GCC 10
onwards -- the problem is no longer present.
Diffstat (limited to 'lang/ruby30-base')
-rw-r--r--lang/ruby30-base/hacks.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/ruby30-base/hacks.mk b/lang/ruby30-base/hacks.mk
index 4c4dea0044f..6475955e649 100644
--- a/lang/ruby30-base/hacks.mk
+++ b/lang/ruby30-base/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2021/02/14 14:32:41 taca Exp $
+# $NetBSD: hacks.mk,v 1.2 2021/04/25 07:23:10 mrg Exp $
.if !defined(RUBY30_BASE_HACKS_MK)
RUBY30_BASE_HACKS_MK= defined
@@ -34,9 +34,9 @@ PKG_HACKS+= optimisation
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-*)
+# On NetBSD/aarch64, GCC before GCC 10 optimisation produces segmentation
+# faulting miniruby binary.
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64*) && !empty(CC_VERSION:Mgcc-[2-9]*)
PKG_HACKS+= optimisation
BUILDLINK_TRANSFORM+= rm:-fomit-frame-pointer
.endif