From: Dmitry Shachnev Date: Sat, 17 Dec 2022 15:20:02 +0000 (+0000) Subject: link the openglrenderer plugin with -latomic on riscv64 X-Git-Tag: archive/raspbian/5.15.8+dfsg-2+rpi1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cea495253742b4e5330bfe500713ef90afc88545;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