- Fix configure tests compromised by LTO
This commit is contained in:
parent
528b550d35
commit
af86d0fd05
12
configure.patch
Normal file
12
configure.patch
Normal 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);
|
@ -2,11 +2,12 @@
|
|||||||
Summary: Library for handling page faults in user mode
|
Summary: Library for handling page faults in user mode
|
||||||
Name: libsigsegv
|
Name: libsigsegv
|
||||||
Version: 2.11
|
Version: 2.11
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://www.gnu.org/software/libsigsegv/
|
URL: https://www.gnu.org/software/libsigsegv/
|
||||||
Source0: http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
|
Source0: http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
|
||||||
|
Patch0: configure.patch
|
||||||
|
|
||||||
BuildRequires: automake libtool
|
BuildRequires: automake libtool
|
||||||
|
|
||||||
@ -36,9 +37,11 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
autoreconf -ivf
|
||||||
%configure \
|
%configure \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-silent-rules \
|
--disable-silent-rules \
|
||||||
@ -88,6 +91,9 @@ make check
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-8
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user