summary refs log tree commit diff
path: root/pkgs/development/libraries/zlib
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-06-16 14:26:40 -0700
committerJohn Wiegley <johnw@newartisans.com>2014-06-16 14:26:40 -0700
commit195800e8816a53d5faafde4a0990a904dbac2510 (patch)
treebb32158d1ce96307e23aab95b15b2c319dfe3279 /pkgs/development/libraries/zlib
parent61e8fe50c21cd96f5dac5d6884f90c5e147047bc (diff)
Do not use static-libgcc flag on Darwin
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 088eb1b949300..f45c18dd0f146 100644
--- a/pkgs/development/libraries/zlib/default.nix
+++ b/pkgs/development/libraries/zlib/default.nix
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
 
   # As zlib takes part in the stdenv building, we don't want references
   # to the bootstrap-tools libgcc (as uses to happen on arm/mips)
-  NIX_CFLAGS_COMPILE = "-static-libgcc";
+  NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (!stdenv.isDarwin) "-static-libgcc";
 
   crossAttrs = {
     dontStrip = static;