Disable LTO

This commit is contained in:
Jeff Law 2020-06-30 14:05:05 -06:00
parent ee2a246925
commit 06a3cf31cd
1 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: glib2
Version: 2.65.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A library of handy utility functions
License: LGPLv2+
@ -85,6 +85,10 @@ the functionality of the installed glib2 package.
%autosetup -n glib-%{version} -p1
%build
# This package has static probes which do not work with LTO
# Disable LTO
%define _lto_cflags %{nil}
# Bug 1324770: Also explicitly remove PCRE sources since we use --with-pcre=system
rm glib/pcre/*.[ch]
%meson \
@ -217,6 +221,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%{_datadir}/installed-tests
%changelog
* Tue Jun 30 2020 Jeff Law <aw@redhat.com> - 2.65.0-3
Disable LTO
* Mon Jun 22 2020 Kalev Lember <klember@redhat.com> - 2.65.0-2
- Update gio-2.0.pc with correct gio-querymodules name when renaming it
(#1849441)