Use %__global_ldflags when building tests
This should fix tests linking when building suitesparse as a flatpak module.
This commit is contained in:
parent
aaae1caaf4
commit
2fb85a961b
@ -38,7 +38,7 @@
|
||||
|
||||
Name: suitesparse
|
||||
Version: 4.4.6
|
||||
Release: 18%{?dist}
|
||||
Release: 19%{?dist}
|
||||
Summary: A collection of sparse matrix libraries
|
||||
|
||||
License: (LGPLv2+ or BSD) and LGPLv2+ and GPLv2+
|
||||
@ -406,7 +406,7 @@ TESTDIRS="$TESTDIRS CSparse"
|
||||
TESTDIRS="$TESTDIRS CXSparse"
|
||||
%endif
|
||||
for d in $TESTDIRS ; do
|
||||
make -C $d/Demo CFLAGS="$RPM_OPT_FLAGS" LAPACK="" SPQR_CONFIG=-DHAVE_TBB TBB=-ltbb
|
||||
make -C $d/Demo CFLAGS="$RPM_OPT_FLAGS" LIB="%{?__global_ldflags} -lm -lrt" LAPACK="" SPQR_CONFIG=-DHAVE_TBB TBB=-ltbb
|
||||
done
|
||||
|
||||
%files
|
||||
@ -424,6 +424,9 @@ done
|
||||
%doc Doc/*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 13 2019 Kalev Lember <klember@redhat.com> - 4.4.6-19
|
||||
- Use %__global_ldflags when building tests
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.6-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user