From 1278245cf08acd4e7eba272390dc28f5f67f16f0 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Thu, 12 Oct 2023 01:25:16 +0000 Subject: [PATCH] Disable LTO Cherry-picked from Fedora: https://src.fedoraproject.org/rpms/scipy/c/4b4527afc01111886c5fae1289a01dfb0292c91d --- python3.12-scipy.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python3.12-scipy.spec b/python3.12-scipy.spec index 2bf985c..3c39cb1 100644 --- a/python3.12-scipy.spec +++ b/python3.12-scipy.spec @@ -6,6 +6,9 @@ # but it is usually not available soon enough for new major Python versions. %bcond_with pythran +# The code is not safe to build with LTO +%global _lto_cflags %{nil} + # Set to pre-release version suffix if building pre-release, else %%{nil} %global rcver %{nil}