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