link with -latomic on riscv64
authorAurelien Jarno <aurel32@debian.org>
Thu, 23 Jul 2020 09:14:35 +0000 (10:14 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 23 Jul 2020 09:14:35 +0000 (10:14 +0100)
Forwarded: no
Last-Update: 2020-01-01

Gbp-Pq: Name riscv64-latomic.patch

src/qml/qml.pro

index 2cbe8ec564fdb98f6d47dc1f9571c3c04cef392d..dc98f4f16db630beec98f05170bcc8fdf7379135 100644 (file)
@@ -17,6 +17,9 @@ solaris-cc*:QMAKE_CXXFLAGS_RELEASE -= -O2
 # Ensure this gcc optimization is switched off for mips platforms to avoid trouble with JIT.
 gcc:isEqual(QT_ARCH, "mips"): QMAKE_CXXFLAGS += -fno-reorder-blocks
 
+# Link with -latomic on riscv64. Ideally qmake should use -pthread instead of -lpthread
+isEqual(QT_ARCH, "riscv64"): QMAKE_LIBS += -latomic
+
 DEFINES += QT_NO_FOREACH
 
 exists("qqml_enable_gcov") {