Enable LTO

LTO was disabled as attempt to work around for the python extension
linker flags. We can enable LTO again now.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1863739#c2
This commit is contained in:
Nir Soffer 2020-08-08 02:35:33 +03:00
parent e4e18da252
commit 83af04fd21

View File

@ -1,6 +1,6 @@
Name: sanlock
Version: 3.8.1
Release: 6%{?dist}
Release: 7%{?dist}
Summary: A shared storage lock manager
License: GPLv2 and GPLv2+ and LGPLv2+
@ -31,11 +31,6 @@ The sanlock daemon manages leases for applications on hosts using shared storage
%patch0 -p1
%build
# This package mixes PIC/PIE objects which causes errors in LTO mode.
# We could disable PIE, but that would run afoul of security policy in
# RHEL, so for now we just disable LTO.
%define _lto_cflags %{nil}
%set_build_flags
# upstream does not require configure
# upstream does not support _smp_mflags
@ -185,6 +180,10 @@ common sanlock lockspace.
%changelog
* Sat Aug 08 2020 Nir Soffer <nsoffer@redhat.com> - 3.8.1-7
- Enable LTO
* Sun Aug 02 2020 Nir Soffer <nsoffer@redhat.com> - 3.8.1-6
- Removing extra linkeer args, hopefully fix python build