From 2f3bb89227cfdbbfb6cfe4fe905162107d9fe695 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Fri, 19 Mar 2021 17:46:16 +0000 Subject: [PATCH] link with -latomic on riscv64 Forwarded: no Last-Update: 2020-01-01 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 7d5a92ad9..0ec1161b8 100644 --- a/src/qml/qml.pro +++ b/src/qml/qml.pro @@ -20,6 +20,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") { -- 2.30.2