From 4b59e850e694f277de6887be1a6c8bafb884da04 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 and https://gitlab.com/redhat/centos-stream/rpms/python3.12-pybind11/-/commit/0734092a6fa963d716745b6323edee016d68d1c5 We need this to ship the previous commit, hence Related: RHEL-38108 --- pybind11.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pybind11.spec b/pybind11.spec index 7f6e7df..0957e89 100644 --- a/pybind11.spec +++ b/pybind11.spec @@ -4,6 +4,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 + # Whether to run the tests, enabled by default %bcond_without tests