diff --git a/guile-configure.patch b/guile-configure.patch new file mode 100644 index 0000000..e5b9436 --- /dev/null +++ b/guile-configure.patch @@ -0,0 +1,21 @@ +diff -Nrup a/m4/mathfunc.m4 b/m4/mathfunc.m4 +--- a/m4/mathfunc.m4 2016-12-14 17:03:33.000000000 -0700 ++++ b/m4/mathfunc.m4 2020-01-06 19:48:46.684158282 -0700 +@@ -60,7 +60,7 @@ AC_DEFUN([gl_MATHFUNC], + #endif + #include + $4 +- $2 (*funcptr) $3 = ]func[; ++ __attribute__ ((used)) $2 (*funcptr) $3 = ]func[; + int i_ret; + float f_ret; + double d_ret; +@@ -85,7 +85,7 @@ AC_DEFUN([gl_MATHFUNC], + #endif + #include + $4 +- $2 (*funcptr) $3 = ]func[; ++ __attribute__ ((used)) $2 (*funcptr) $3 = ]func[; + int i_ret; + float f_ret; + double d_ret; diff --git a/guile22.spec b/guile22.spec index 8b6b315..f68f6c9 100644 --- a/guile22.spec +++ b/guile22.spec @@ -7,7 +7,7 @@ Summary: A GNU implementation of Scheme for application extensibility Name: guile22 Version: 2.2.6 -Release: 2%{?dist} +Release: 3%{?dist} Source: ftp://ftp.gnu.org/pub/gnu/guile/guile-%{version}.tar.gz URL: http://www.gnu.org/software/guile/ License: LGPLv3+ @@ -20,6 +20,7 @@ Provides: bundled(gnulib) Patch1: guile-multilib.patch Patch3: guile-threadstest.patch Patch4: disable-out-of-memory-test.patch +Patch5: guile-configure.patch %description GUILE (GNU's Ubiquitous Intelligent Language for Extension) is a library @@ -49,9 +50,11 @@ install the guile package. %patch1 -p1 -b .multilib %patch3 -p1 -b .threadstest %patch4 -p1 +%patch5 -p1 -b .configure %build +autoreconf -fiv %configure --disable-static --disable-error-on-warning --program-suffix=%{?mver} # Remove RPATH @@ -168,6 +171,9 @@ fi %changelog +* Fri Jan 17 2020 Jeff Law - 2.2.6-3 +- Fix configure tests compromised by LTO + * Thu Jul 25 2019 Fedora Release Engineering - 2.2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild