mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
Merge pull request #157794 from NickCao/libnatpmp-cross
libnatpmp: fix cross compilation
This commit is contained in:
commit
2065ecc174
@ -10,13 +10,10 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "gcc" "${stdenv.cc.targetPrefix}cc" \
|
||||
--replace "ar" "${stdenv.cc.targetPrefix}ar"
|
||||
'';
|
||||
|
||||
makeFlags = [ "INSTALLPREFIX=$(out)" ];
|
||||
makeFlags = [
|
||||
"INSTALLPREFIX=$(out)"
|
||||
"CC:=$(CC)"
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
chmod +x $out/lib/*
|
||||
|
Loading…
Reference in New Issue
Block a user