qt5: Link with -pthread for riscv64

Linking with -pthread fixes the missing atomic linker failures on riscv64.

Thsi fixes the following linker errors:
    qtestcase.h:359: more undefined references to `__atomic_fetch_xor_1' follow
    collect2: error: ld returned 1 exit status

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
Alistair Francis
2020-08-12 17:23:15 -07:00
committed by Martin Jansa
parent f565d6c90b
commit c8d191d19d
2 changed files with 4 additions and 0 deletions

View File

@@ -172,6 +172,8 @@ QT_CONFIG_FLAGS_GOLD = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-
QT_CONFIG_FLAGS_GOLD = "-no-use-gold-linker"
LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
LDFLAGS_append_riscv64 = " -pthread"
QT_CONFIG_FLAGS += " \
${QT_CONFIG_FLAGS_GOLD} \
-shared \

View File

@@ -19,6 +19,8 @@ SRC_URI += " \
file://0002-Use-python3-explicitly.patch \
"
LDFLAGS_append_riscv64 = " -pthread"
DEPENDS += "qtbase qtdeclarative-native"
PACKAGECONFIG ??= "qml-debug qml-network ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)}"