From 92c64a31d8c51b28fb8d1a4c403e8149c2b2058e Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Thu, 2 Jan 2020 11:25:07 +0000 Subject: [PATCH] riscv64-latomic Gbp-Pq: Name riscv64-latomic.patch --- src/qml/qml.pro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qml/qml.pro b/src/qml/qml.pro index d2170ac40..be28e1bf8 100644 --- a/src/qml/qml.pro +++ b/src/qml/qml.pro @@ -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 { -- 2.30.2