Merge pull request #141414 from jraygauthier/jrg/mingw-w64-pthread-static

mingw_w64_pthreads: enable 'static' lib output
This commit is contained in:
Guillaume Girol 2021-11-10 22:02:57 +00:00 committed by GitHub
commit 71c8555474
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';