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