From f806e664d96b8aa81d10254df9bc271539349d8a Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Jul 28 2021 23:23:02 +0000 Subject: spec: Use --enable-lto if _lto_cflags is not empty Not sure if this is strictly required, but it seems like the right thing to do Signed-off-by: Cole Robinson --- diff --git a/qemu.spec b/qemu.spec index 8f06d3a..1f0597f 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1345,6 +1345,9 @@ run_configure \ --enable-libusb \ --enable-libudev \ --enable-linux-aio \ +%if "%{_lto_cflags}" != "%{nil}" + --enable-lto \ +%endif --enable-lzo \ --enable-malloc-trim \ --enable-modules \