link the openglrenderer plugin with -latomic on riscv64
authorDmitry Shachnev <mitya57@debian.org>
Thu, 12 Nov 2020 12:19:45 +0000 (12:19 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 12 Nov 2020 12:19:45 +0000 (12:19 +0000)
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<int, Qt3DRender::Render::OpenGL::RenderView::StandardUniform>::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

index 1682ab7b311c31c924041c19eafb7a91ac07f076..182348b72aa6c350da6475bae518d0fd213a956d 100644 (file)
@@ -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