Link to libatomic on riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-10-10 11:08:00 +03:00
parent eb2f4bd1df
commit 559aaaa100
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 10 additions and 1 deletions

View File

@ -12,7 +12,7 @@
Summary: Qt5 - QtDeclarative component
Name: qt5-%{qt_module}
Version: 5.15.6
Release: 1%{?dist}
Release: 1.0.riscv64%{?dist}
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
License: LGPLv2 with exceptions or GPLv3 with exceptions
@ -116,6 +116,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
ln -s %{__python3} python
export PATH=`pwd`:$PATH
# riscv64
# GCC 13 should fix that
%ifarch riscv64
export LDFLAGS="%{_qt5_ldflags} -latomic"
%endif
%qmake_qt5
%make_build
@ -230,6 +236,9 @@ make check -k -C tests ||:
%changelog
* Mon Oct 10 2022 David Abdurachmanov <davidlt@rivosinc.com> - 5.15.6-1.0.riscv64
- Link to libatomic on risv64
* Tue Sep 20 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.6-1
- 5.15.6