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 <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2021-07-28 19:12:06 -04:00
parent 38b1a6c732
commit f806e664d9
1 changed files with 3 additions and 0 deletions

View File

@ -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 \