- Fix configure tests compromised by LTO

This commit is contained in:
Jeff Law 2020-01-17 16:00:16 -07:00
parent 528b550d35
commit af86d0fd05
2 changed files with 19 additions and 1 deletions

12
configure.patch Normal file
View File

@ -0,0 +1,12 @@
diff -Nrup a/m4/fault.m4 b/m4/fault.m4
--- a/m4/fault.m4 2014-01-02 15:26:46.000000000 -0700
+++ b/m4/fault.m4 2020-01-17 15:40:41.420148995 -0700
@@ -49,7 +49,7 @@ static int zero_fd;
# define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL
#endif
unsigned long page;
-int handler_called = 0;
+volatile int handler_called = 0;
void sigsegv_handler ($5)
{
void *fault_address = (void *) ($6);

View File

@ -2,11 +2,12 @@
Summary: Library for handling page faults in user mode
Name: libsigsegv
Version: 2.11
Release: 8%{?dist}
Release: 9%{?dist}
License: GPLv2+
URL: https://www.gnu.org/software/libsigsegv/
Source0: http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
Patch0: configure.patch
BuildRequires: automake libtool
@ -36,9 +37,11 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%prep
%setup -q
%patch0 -p1
%build
autoreconf -ivf
%configure \
--enable-shared \
--disable-silent-rules \
@ -88,6 +91,9 @@ make check
%changelog
* Fri Jan 17 2020 Jeff Law <law@redhat.com> - 2.11-9
- Fix configure tests compromised by LTO
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild