zlib: fix cross compilation on darwin

launchpad/nixpkgs/master
Andrew Childs 4 years ago
parent 9088e445fe
commit 24a378c070
  1. 4
      pkgs/development/libraries/zlib/default.nix

@ -37,8 +37,8 @@ stdenv.mkDerivation (rec {
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace configure \
--replace '/usr/bin/libtool' 'ar' \
--replace 'AR="libtool"' 'AR="ar"' \
--replace '/usr/bin/libtool' '${stdenv.cc.targetPrefix}ar' \
--replace 'AR="libtool"' 'AR="${stdenv.cc.targetPrefix}ar"' \
--replace 'ARFLAGS="-o"' 'ARFLAGS="-r"'
'';

Loading…
Cancel
Save