diff options
author | Raymond Gauthier <jraygauthier@gmail.com> | 2021-10-12 09:45:54 -0400 |
---|---|---|
committer | Raymond Gauthier <jraygauthier@gmail.com> | 2021-10-12 09:48:46 -0400 |
commit | 6ea34850ff78d513d173392404694a557397e054 (patch) | |
tree | 8503e06c9f5b1edbc6fea965de060549413ba905 /pkgs/os-specific/windows | |
parent | 15847b4b4fc260fb400880aa3cbee65a65f252c5 (diff) | |
download | nixpkgs-6ea34850ff78d513d173392404694a557397e054.tar nixpkgs-6ea34850ff78d513d173392404694a557397e054.tar.gz nixpkgs-6ea34850ff78d513d173392404694a557397e054.tar.bz2 nixpkgs-6ea34850ff78d513d173392404694a557397e054.tar.lz nixpkgs-6ea34850ff78d513d173392404694a557397e054.tar.xz nixpkgs-6ea34850ff78d513d173392404694a557397e054.tar.zst nixpkgs-6ea34850ff78d513d173392404694a557397e054.zip |
mingw_w64_pthreads: enable 'static' lib output
This make this 'mingw_w64_pthreads' package suitable for use when cross compiling rust code from linux to windows.
Diffstat (limited to 'pkgs/os-specific/windows')
-rw-r--r-- | pkgs/os-specific/windows/mingw-w64/pthreads.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/os-specific/windows/mingw-w64/pthreads.nix b/pkgs/os-specific/windows/mingw-w64/pthreads.nix index bbcb028d3cb..3b143efed1d 100644 --- a/pkgs/os-specific/windows/mingw-w64/pthreads.nix +++ b/pkgs/os-specific/windows/mingw-w64/pthreads.nix @@ -4,6 +4,12 @@ stdenv.mkDerivation { name = "${mingw_w64.name}-pthreads"; inherit (mingw_w64) src meta; + configureFlags = [ + # Rustc require 'libpthread.a' when targeting 'x86_64-pc-windows-gnu'. + # Enabling this makes it work out of the box instead of failing. + "--enable-static" + ]; + preConfigure = '' cd mingw-w64-libraries/winpthreads ''; |