From: Aurelien Jarno Date: Thu, 7 Nov 2024 08:47:17 +0000 (+0300) Subject: link with -latomic on riscv64 X-Git-Tag: archive/raspbian/5.15.15+dfsg-3+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=30e345ad84ba485b01545834a9aa99a5bc83dae1;p=qtdeclarative-opensource-src.git link with -latomic on riscv64 Forwarded: no Last-Update: 2020-01-01 Gbp-Pq: Name riscv64-latomic.patch --- 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") {