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: v14.2.2~108^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2e5c2095d98af97f460159fff6a8de7ab454b73d;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 (cherry picked from commit 6ab109bb9b3f37a2bb87a934faa10b8311e6504c) --- diff --git a/ceph.spec.in b/ceph.spec.in index bcce15a7b507..a33590d0cad8 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1051,6 +1051,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-7/enable