diff --git a/ceph.spec.in b/ceph.spec.in index 66002dd5f7e..138e8707671 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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