From: Dmitry Shachnev Date: Sat, 8 Jul 2023 16:03:51 +0000 (+0100) Subject: link the openglrenderer plugin with -latomic on riscv64 X-Git-Tag: archive/raspbian/5.15.13+dfsg-2+rpi1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b0baf72cefd5a0a95829efe534ee20a0838330d9;p=qt3d-opensource-src.git 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 --- 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