diff --git a/gap.spec b/gap.spec index 1b01869..5554107 100644 --- a/gap.spec +++ b/gap.spec @@ -31,7 +31,7 @@ Name: gap Version: 4.11.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Computational discrete algebra %global majver %(cut -d. -f1-2 <<< %{version}) @@ -202,7 +202,9 @@ cp -p %{SOURCE1} README.fedora %build # -Wl,-z,now breaks use of RTLD_LAZY -export LDFLAGS="-Wl,-z,relro -Wl,--as-needed" +# Even though the GAP kernel is single-threaded, it must be linked with pthreads +# or packages cannot successfully load and run multithreaded shared objects. +export LDFLAGS="-lpthread -Wl,-z,relro -Wl,--as-needed" export CPPFLAGS='-DSYS_DEFAULT_PATHS="\"%{gapdir}\""' export STRIP=%{_bindir}/true %configure @@ -445,6 +447,9 @@ make check %{_libdir}/libgap.so %changelog +* Wed Dec 23 2020 Jerry James - 4.11.0-6 +- Force the binary to be linked with pthreads + * Mon Jul 27 2020 Fedora Release Engineering - 4.11.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild