Package: qtdeclarative-opensource-src / 5.15.17+dfsg-1

riscv64-latomic.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: link with -latomic on riscv64
Author: Aurelien Jarno <aurel32@debian.org>
Forwarded: no
Last-Update: 2020-01-01

--- a/src/qml/qml.pro
+++ b/src/qml/qml.pro
@@ -20,6 +20,9 @@ solaris-cc*:QMAKE_CXXFLAGS_RELEASE -= -O
 # 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") {