]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: Disable LTO in spec when being used 28170/head
authorMartin Liska <mliska@suse.cz>
Mon, 20 May 2019 09:37:52 +0000 (11:37 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 29 May 2019 12:26:42 +0000 (14:26 +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>
ceph.spec.in

index 66002dd5f7eb53016730290652e098e8f74955b5..138e87076716682be9acc91d7df1b52ef45cac05 100644 (file)
@@ -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