Disable LTO

This commit is contained in:
Jeff Law 2020-07-08 16:04:08 -06:00
parent df0e5b4b98
commit 2bbca28487

View File

@ -3,7 +3,7 @@
Name: openwsman
Version: 2.6.8
Release: 14%{?dist}
Release: 15%{?dist}
Summary: Open source Implementation of WS-Management
License: BSD
@ -134,6 +134,11 @@ You can use it to send shell commands to a remote Windows hosts.
%patch7 -p1 -b .CVE-2019-3833
%build
# We override CFLAGS/LDFLAGS below and force PIE executables, which is generally
# fine, except that it ultimately tries to mix PIC and PIE which is a no-no
# and triggers errors with LTO
# Disable LTO
%define _lto_cflags %{nil}
# Removing executable permissions on .c and .h files to fix rpmlint warnings.
chmod -x src/cpp/WsmanClient.h
@ -285,6 +290,9 @@ rm -f /var/log/wsmand.log
%{_bindir}/winrs
%changelog
* Wed Jul 08 2020 Jeff Law <law@redhat.com> - 2.6.8-15
- Disable LTO
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.6.8-14
- Perl 5.32 rebuild