mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #157794 from NickCao/libnatpmp-cross
libnatpmp: fix cross compilation
This commit is contained in:
commit
2065ecc174
1 changed files with 4 additions and 7 deletions
|
@ -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 a new issue