From 6ab109bb9b3f37a2bb87a934faa10b8311e6504c Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 20 May 2019 11:37:52 +0200 Subject: [PATCH] rpm: Disable LTO in spec when being used MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: http://tracker.ceph.com/issues/39974 Works around: https://tracker.ceph.com/issues/40060 Signed-off-by: Martin Liška --- ceph.spec.in | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.3