diff --git a/spec/lvm2.spec b/spec/lvm2.spec index 18b1821da..1a109b615 100644 --- a/spec/lvm2.spec +++ b/spec/lvm2.spec @@ -18,6 +18,11 @@ %import source.inc +%if %{lvm2_testsuite_build} == 0 +# Disable global optimization when building on machine with installed lvm2-testsuited +%global _lto_cflags %nil +%endif + # PatchN: nnn.patch goes here %prep