qtbase: use -pthread instead of -lpthread

This fixes "undefined reference to `__atomic_*'" errors when building
qt5.qtdeclarative on riscv64-linux.
This commit is contained in:
Chuang Zhu 2022-04-28 12:54:49 +08:00
parent 413490ab0d
commit 235c1c1766

View File

@ -116,6 +116,9 @@ stdenv.mkDerivation {
sed -i '/PATHS.*NO_DEFAULT_PATH/ d' src/corelib/Qt5CoreMacros.cmake
sed -i 's/NO_DEFAULT_PATH//' src/gui/Qt5GuiConfigExtras.cmake.in
sed -i '/PATHS.*NO_DEFAULT_PATH/ d' mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
# https://bugs.gentoo.org/803470
sed -i 's/-lpthread/-pthread/' mkspecs/common/linux.conf src/corelib/configure.json
'' + lib.optionalString (compareVersion "5.15.0" >= 0) ''
patchShebangs ./bin
'' + (