riscv64-latomic
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 2 Jan 2020 11:25:07 +0000 (11:25 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 2 Jan 2020 11:25:07 +0000 (11:25 +0000)
Gbp-Pq: Name riscv64-latomic.patch

src/qml/qml.pro

index d2170ac40b5cfb80b7e1f77fe2e0fc66d4e73213..be28e1bf85ef426fa4acab618076b960f3322600 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
 
 !build_pass {