From 8855a68692262f4d661a3e3ff1cf265ddff5e803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Mon, 27 Jul 2020 17:15:32 +0200 Subject: [PATCH] Disable LTO, which appear to cause issues with SIGSEV handler. https://src.fedoraproject.org/rpms/redhat-rpm-config/c/5baaf4a99cc77572d3496a7000674098bef7ed68?branch=master --- ruby.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ruby.spec b/ruby.spec index 0bdcad7..ee3b629 100644 --- a/ruby.spec +++ b/ruby.spec @@ -71,6 +71,10 @@ %bcond_without hardening_test %endif +# LTO appears to cause some issue to SEGV handler. +# https://bugs.ruby-lang.org/issues/17052 +%define _lto_cflags %{nil} + Summary: An interpreter of object-oriented scripting language Name: ruby Version: %{ruby_version} @@ -1109,6 +1113,7 @@ make check TESTS="-v $DISABLE_TESTS" MSPECOPT="-fs $MSPECOPTS" - Fix checksec 2.0+ compatibility. - Fix FTBFS due to glibc 2.31.9000 implementing lchmod(2). - Fix FTBFS due to libyaml 0.2.5. +- Disable LTO, which appear to cause issues with SIGSEV handler. * Tue Apr 30 2019 Jun Aruga - 2.5.5-105 - Update to Ruby 2.5.5.