Link to libatomic in riscv
Signed-off-by: yangyanchao <yangyanchao6@huawei.com>
This commit is contained in:
parent
073d3c4074
commit
1ae5fc5a82
9
tbb.spec
9
tbb.spec
@ -1,6 +1,6 @@
|
|||||||
Name: tbb
|
Name: tbb
|
||||||
Version: 2020.3
|
Version: 2020.3
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Threading Building Blocks lets you easily write parallel C++ programs
|
Summary: Threading Building Blocks lets you easily write parallel C++ programs
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://threadingbuildingblocks.org/
|
URL: http://threadingbuildingblocks.org/
|
||||||
@ -67,7 +67,11 @@ done
|
|||||||
pushd python
|
pushd python
|
||||||
%make_build -C rml stdver=c++14 \
|
%make_build -C rml stdver=c++14 \
|
||||||
CPLUS_FLAGS="%{optflags} -DDO_ITT_NOTIFY -DUSE_PTHREAD" \
|
CPLUS_FLAGS="%{optflags} -DDO_ITT_NOTIFY -DUSE_PTHREAD" \
|
||||||
|
%ifarch riscv64
|
||||||
|
LDFLAGS="$RPM_LD_FLAGS -lpthread -latomic"
|
||||||
|
%else
|
||||||
LDFLAGS="$RPM_LD_FLAGS -lpthread"
|
LDFLAGS="$RPM_LD_FLAGS -lpthread"
|
||||||
|
%endif
|
||||||
cp -p rml/libirml.so* .
|
cp -p rml/libirml.so* .
|
||||||
%py3_build
|
%py3_build
|
||||||
popd
|
popd
|
||||||
@ -143,6 +147,9 @@ rm %{buildroot}%{_libdir}/cmake/tbb/README.rst
|
|||||||
%{python3_sitearch}/__pycache__/TBB*
|
%{python3_sitearch}/__pycache__/TBB*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 11 2020 yangyanchao <yangyanchao6@huawei.com> - 2020.3-2
|
||||||
|
- Link to libatomic in riscv
|
||||||
|
|
||||||
* Fri Jul 24 2020 shixuantong <shixuantong@huawei.com> - 2020.3-1
|
* Fri Jul 24 2020 shixuantong <shixuantong@huawei.com> - 2020.3-1
|
||||||
- update to 2020.3-1
|
- update to 2020.3-1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user