3
0
Fork 0
forked from mirrors/nixpkgs

jxrlib; support cross-compilation

This commit is contained in:
Rick van Schijndel 2021-07-08 19:10:05 +02:00
parent 3a52368bc4
commit cb9db8a823

View file

@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
sha256 = "0rk3hbh00nw0wgbfbqk1szrlfg3yq7w6ar16napww3nrlm9cj65w";
};
postPatch = lib.optionalString stdenv.isDarwin ''
postPatch = ''
substituteInPlace Makefile \
--replace "cc" "$CC"
'' + lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile \
--replace '-shared' '-dynamiclib -undefined dynamic_lookup' \
--replace '.so' '.dylib'