mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 10:53:52 +00:00
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:
parent
413490ab0d
commit
235c1c1766
@ -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
|
||||
'' + (
|
||||
|
Loading…
Reference in New Issue
Block a user