From 559aaaa1002b3185a47c5cb9f81c4bf9c8fe8c9a Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Mon, 10 Oct 2022 11:08:00 +0300 Subject: [PATCH] Link to libatomic on riscv64 Signed-off-by: David Abdurachmanov --- qt5-qtdeclarative.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/qt5-qtdeclarative.spec b/qt5-qtdeclarative.spec index 34d407a..1b28b6b 100644 --- a/qt5-qtdeclarative.spec +++ b/qt5-qtdeclarative.spec @@ -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 - 5.15.6-1.0.riscv64 +- Link to libatomic on risv64 + * Tue Sep 20 2022 Jan Grulich - 5.15.6-1 - 5.15.6