From d9e75450d8c2d2301fd684f79eb0a2c8a522c85a Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Thu, 29 Sep 2022 09:55:47 +0100 Subject: [PATCH] link the openglrenderer plugin with -latomic on riscv64 Forwarded: no Last-Update: 2020-10-30 Otherwise it fails to build with the following error: /usr/bin/ld: .obj/renderview.o: in function `QHash::findNode(int const&, unsigned int) const': /usr/include/riscv64-linux-gnu/qt5/QtCore/qhash.h:931: undefined reference to `__atomic_exchange_1' Gbp-Pq: Name riscv64_atomic.diff --- src/plugins/renderers/opengl/opengl.pri | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/renderers/opengl/opengl.pri b/src/plugins/renderers/opengl/opengl.pri index 1682ab7..182348b 100644 --- a/src/plugins/renderers/opengl/opengl.pri +++ b/src/plugins/renderers/opengl/opengl.pri @@ -39,3 +39,5 @@ qtConfig(qt3d-simd-sse2):!qtConfig(qt3d-simd-avx2) { CONFIG += simd QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE2 } + +isEqual(QT_ARCH, "riscv64"): QMAKE_LIBS += -latomic -- 2.30.2