]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: Disable LTO in spec when being used 28299/head
authorMartin Liska <mliska@suse.cz>
Mon, 20 May 2019 09:37:52 +0000 (11:37 +0200)
committerNathan Cutler <ncutler@suse.com>
Wed, 29 May 2019 16:23:13 +0000 (18:23 +0200)
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)

ceph.spec.in

index bcce15a7b507b150f2afd37b10c09829172a57d5..a33590d0cad88d974dea8e32b265289534784372 100644 (file)
@@ -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