aboutsummaryrefslogtreecommitdiffstats
path: root/factor
diff options
context:
space:
mode:
Diffstat (limited to 'factor')
-rw-r--r--factor/msieve/msieve.spec8
-rw-r--r--factor/yafu/yafu.spec9
2 files changed, 13 insertions, 4 deletions
diff --git a/factor/msieve/msieve.spec b/factor/msieve/msieve.spec
index a976b56..d7f8dd4 100644
--- a/factor/msieve/msieve.spec
+++ b/factor/msieve/msieve.spec
@@ -1,6 +1,6 @@
Name: msieve
Version: 1.53
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Msieve is a C library to factor large integers.
License: Public Domain
@@ -22,7 +22,7 @@ latter has helped complete some of the largest public factorizations known.
%build
sed -i 's|-march=native||' Makefile
-%make_build all ECM=1 CC="gcc %{optflags} %{__global_ldflags}"
+%make_build all ECM=1 CC="gcc %{build_cflags} %{build_ldflags} -fcommon"
%install
@@ -40,6 +40,10 @@ install -m 644 libmsieve.a %{buildroot}%{_libdir}
%changelog
+* Thu Apr 23 2020 Ting-Wei Lan <lantw44@gmail.com> - 1.53-9
+- Fix GCC 10 linking failure with -fcommon
+- Use build_* flags instead of the old optflags and __global_ldflags
+
* Tue Sep 17 2019 Ting-Wei Lan <lantw44@gmail.com> - 1.53-8
- Rebuilt for Fedora 31 and 32
diff --git a/factor/yafu/yafu.spec b/factor/yafu/yafu.spec
index 853509e..d54d08d 100644
--- a/factor/yafu/yafu.spec
+++ b/factor/yafu/yafu.spec
@@ -1,6 +1,6 @@
Name: yafu
Version: 1.34
-Release: 15%{?dist}
+Release: 16%{?dist}
Summary: Automated integer factorization
License: Public Domain
@@ -28,7 +28,8 @@ utilize multi- or many-core processors (including SNFS, GNFS, SIQS, and ECM).
sed -i 's|-lmsieve|-lmsieve -lz|' Makefile
%ifarch x86_64
-%make_build x86_64 NFS=1 USE_SSE41=1 CC="gcc %{optflags} %{__global_ldflags}"
+%make_build x86_64 NFS=1 USE_SSE41=1 \
+ CC="gcc %{build_cflags} %{build_ldflags} -fcommon"
%else
false
%endif
@@ -46,6 +47,10 @@ install -m 755 yafu %{buildroot}%{_bindir}
%changelog
+* Thu Apr 23 2020 Ting-Wei Lan <lantw44@gmail.com> - 1.34-16
+- Fix GCC 10 linking failure with -fcommon
+- Use build_* flags instead of the old optflags and __global_ldflags
+
* Tue Sep 17 2019 Ting-Wei Lan <lantw44@gmail.com> - 1.34-15
- Rebuilt for Fedora 31 and 32