Disable LTO

This commit is contained in:
Jeff Law 2020-07-01 12:30:37 -06:00
parent ea891c6b1c
commit 1e06578e6f

View File

@ -1,6 +1,6 @@
Name: fuse3
Version: 3.9.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: File System in Userspace (FUSE) v3 utilities
License: GPL+
URL: http://fuse.sf.net
@ -67,6 +67,14 @@ Common files for FUSE v2 and FUSE v3.
%setup -n libfuse-fuse-%{version}
%build
# This package uses top level ASM constructs which are incompatible with LTO.
# Top level ASMs are often used to implement symbol versioning. gcc-10
# introduces a new mechanism for symbol versioning which works with LTO.
# Converting packages to use that mechanism instead of toplevel ASMs is
# recommended.
# Disable LTO
%define _lto_cflags %{nil}
export LC_ALL=en_US.UTF-8
%if ! 0%{?_vpath_srcdir:1}
%global _vpath_srcdir .
@ -154,6 +162,9 @@ rm -f %{buildroot}/usr/lib/udev/rules.d/99-fuse3.rules
%endif
%changelog
* Wed Jul 1 2020 Jeff Law <law@redhat.com> - 3.9.2-2
- Disable LTO
* Thu Jun 18 2020 Tom Callaway <spot@fedoraproject.org> - 3.9.2-1
- update to 3.9.2