From 83af04fd21c958fa12fe83ef8dbb77a88b4967db Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Aug 07 2020 23:35:33 +0000 Subject: 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 --- diff --git a/sanlock.spec b/sanlock.spec index 36be06b..ab83a76 100644 --- a/sanlock.spec +++ b/sanlock.spec @@ -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 - 3.8.1-7 +- Enable LTO + * Sun Aug 02 2020 Nir Soffer - 3.8.1-6 - Removing extra linkeer args, hopefully fix python build