From: Martin Liska Date: Mon, 20 May 2019 09:37:52 +0000 (+0200) Subject: rpm: Disable LTO in spec when being used X-Git-Tag: v15.1.0~2618^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F28170%2Fhead;p=ceph.git 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index 66002dd5f7eb..138e87076716 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