From dea1d3a82f542c4cccff9f2d73ca8c830b99efcb Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 30 Jun 2020 13:47:55 -0600 Subject: [PATCH] Disable LTO. --- rpm-ostree.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rpm-ostree.spec b/rpm-ostree.spec index b715155..001febd 100644 --- a/rpm-ostree.spec +++ b/rpm-ostree.spec @@ -4,7 +4,7 @@ Summary: Hybrid image/package system Name: rpm-ostree Version: 2020.3 -Release: 1%{?dist} +Release: 2%{?dist} #VCS: https://github.com/cgwalters/rpm-ostree # This tarball is generated via "cd packaging && make -f Makefile.dist-packaging dist-snapshot" # in the upstream git. If rust is enabled, it contains vendored sources. @@ -124,6 +124,11 @@ The %{name}-devel package includes the header files for %{name}-libs. %autosetup -Sgit -n %{name}-%{version} %build +# gobject introspection does not work with LTO. There is an effort to fix this +# in the appropriate project upstreams, so hopefully LTO can be enabled someday +# Disable LTO. +%define _lto_cflags %{nil} + env NOCONFIGURE=1 ./autogen.sh %configure --disable-silent-rules --enable-gtk-doc make %{?_smp_mflags} @@ -189,6 +194,9 @@ $PYTHON autofiles.py > files.devel \ %files devel -f files.devel %changelog +* Tue Jun 30 2020 Jeff Law - 2020.3-2 +Disable LTO + * Wed Feb 05 2020 Jonathan Lebon - 2020.3-1 - New upstream version https://github.com/coreos/rpm-ostree/releases/tag/v2020.3