summary refs log tree commit diff
path: root/pkgs/development/libraries/zlib
diff options
context:
space:
mode:
authorTaeer Bar-Yam <taeer@bar-yam.me>2021-04-28 10:06:20 -0400
committerTaeer Bar-Yam <taeer@bar-yam.me>2021-04-28 10:06:20 -0400
commit9c662a39b2fe2cda5931b709c5eb8e736b03f4e2 (patch)
tree4adc4c9c8b90637742ba13b67710d7e5ca84643a /pkgs/development/libraries/zlib
parent61a31ad3d6c58cf7cc7c57fb998835c019e458d2 (diff)
downloadnixpkgs-9c662a39b2fe2cda5931b709c5eb8e736b03f4e2.tar
nixpkgs-9c662a39b2fe2cda5931b709c5eb8e736b03f4e2.tar.gz
nixpkgs-9c662a39b2fe2cda5931b709c5eb8e736b03f4e2.tar.bz2
nixpkgs-9c662a39b2fe2cda5931b709c5eb8e736b03f4e2.tar.lz
nixpkgs-9c662a39b2fe2cda5931b709c5eb8e736b03f4e2.tar.xz
nixpkgs-9c662a39b2fe2cda5931b709c5eb8e736b03f4e2.tar.zst
nixpkgs-9c662a39b2fe2cda5931b709c5eb8e736b03f4e2.zip
zlib: fix windows static compile
Diffstat (limited to 'pkgs/development/libraries/zlib')
-rw-r--r--pkgs/development/libraries/zlib/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/zlib/default.nix b/pkgs/development/libraries/zlib/default.nix
index da8aac5229b..998550d1fee 100644
--- a/pkgs/development/libraries/zlib/default.nix
+++ b/pkgs/development/libraries/zlib/default.nix
@@ -84,7 +84,7 @@ stdenv.mkDerivation (rec {
   ''
     # Non-typical naming confuses libtool which then refuses to use zlib's DLL
     # in some cases, e.g. when compiling libpng.
-  + lib.optionalString (stdenv.hostPlatform.libc == "msvcrt") ''
+  + lib.optionalString (stdenv.hostPlatform.libc == "msvcrt" && shared) ''
     ln -s zlib1.dll $out/bin/libz.dll
   '';