rpm: Disable LTO in spec when being used

Fixes: http://tracker.ceph.com/issues/39974
Works around: https://tracker.ceph.com/issues/40060

Signed-off-by: Martin Liška <Martin.Liska@suse.com>
This commit is contained in:
Martin Liska 2019-05-20 11:37:52 +02:00
parent 7eeb926328
commit 6ab109bb9b

View File

@ -1065,6 +1065,9 @@ integrated with the Ceph Manager Dashboard web UI.
%autosetup -p1 -n @TARBALL_BASENAME@
%build
# LTO can be enabled as soon as the following GCC bug is fixed:
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200
%define _lto_cflags %{nil}
%if 0%{?rhel} == 7
. /opt/rh/devtoolset-8/enable