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>
(cherry picked from commit
6ab109bb9b3f37a2bb87a934faa10b8311e6504c)
%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-7/enable