diff --git a/giac-config.patch b/giac-config.patch new file mode 100644 index 0000000..c7c4658 --- /dev/null +++ b/giac-config.patch @@ -0,0 +1,19 @@ +diff --git a/m4/intdiv0.m4 b/m4/intdiv0.m4 +index b8d7817..23fdc1d 100644 +--- m4/intdiv0.m4 ++++ m4/intdiv0.m4 +@@ -29,10 +29,10 @@ sigfpe_handler (sig) int sig; + exit (sig != SIGFPE); + } + +-int x = 1; +-int y = 0; +-int z; +-int nan; ++volatile int x = 1; ++volatile int y = 0; ++volatile int z; ++volatile int nan; + + int main () + { diff --git a/giac.spec b/giac.spec index 8122691..000890c 100644 --- a/giac.spec +++ b/giac.spec @@ -7,7 +7,7 @@ Name: giac Summary: Computer Algebra System, Symbolic calculus, Geometry Version: 1.5.0%{subversion} -Release: 3%{?dist} +Release: 4%{?dist} # LGPLv3+: src/Fl_GDI_Printer.cxx, src/Flv_List.cc, src/Flv_Table.cc # BSD: src/tinymt32* License: GPLv3+ @@ -25,6 +25,9 @@ Patch0: %{name}-iszero.patch # Adapt to cocoalib 0.99700 Patch1: %{name}-cocoalib.patch +# Deal with LTO compromised configure test +Patch2: %{name}-config.patch + BuildRequires: readline-devel BuildRequires: gettext-devel BuildRequires: gcc-c++ @@ -387,6 +390,9 @@ make -C check check %{_datadir}/giac/examples/ %changelog +* Tue Jun 30 2020 Jeff Law - 1.5.0.85-4 +- Fix broken configure test compromised by LTO + * Tue Jun 2 2020 Jerry James - 1.5.0.85-3 - Rebuild for nauty 2.7.1