From ba55ee4bdcc98064add3609974f5f19599c6a5b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 17 Jan 2024 19:28:12 +0100 Subject: [PATCH] Disable LTO on power This does not change the resulting package. See https://gitlab.com/redhat/centos-stream/rpms/python3.11-pybind11/-/commit/4e6e2273d07756cd5d8c6c5aa14e8c820f565292 --- python3.12-pybind11.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python3.12-pybind11.spec b/python3.12-pybind11.spec index 77428c6..ffd7e1f 100644 --- a/python3.12-pybind11.spec +++ b/python3.12-pybind11.spec @@ -7,6 +7,11 @@ # https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Header_Only_Libraries %global debug_package %{nil} +%ifarch ppc64le +# The tests are not LTO-compatible on power +%global _lto_cflags %{nil} +%endif + # Exclude automatic provides without python3.11 in the name %global __provides_exclude cmake|pkgconfig