Do not use static-libgcc flag on Darwin

This commit is contained in:
John Wiegley 2014-06-16 14:26:40 -07:00
parent 61e8fe50c2
commit 195800e881

View file

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