From bc33d448449ab34f72d68754724f0e84b982b27e Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 8 Jul 2020 15:18:49 -0600 Subject: [PATCH] Disable LTO --- sanlock.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sanlock.spec b/sanlock.spec index c0d7cab..d9b9151 100644 --- a/sanlock.spec +++ b/sanlock.spec @@ -1,6 +1,6 @@ Name: sanlock Version: 3.8.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A shared storage lock manager License: GPLv2 and GPLv2+ and LGPLv2+ @@ -29,6 +29,11 @@ The sanlock daemon manages leases for applications on hosts using shared storage %setup -q %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 @@ -178,6 +183,9 @@ common sanlock lockspace. %changelog +* Tue Jul 08 2020 Jeff Law - 3.8.1-3 +- Disable LTO + * Tue May 26 2020 Miro HronĨok - 3.8.1-2 - Rebuilt for Python 3.9