Merge pull request #113283 from siraben/miranda-xcompile

miranda: fix cross-compilation
This commit is contained in:
Sandro 2021-02-17 00:39:49 +01:00 committed by GitHub
commit ee84a81721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
]; ];
makeFlags = [ makeFlags = [
"CC=cc" "CC=${stdenv.cc.targetPrefix}cc"
"CFLAGS=-O2" "CFLAGS=-O2"
"PREFIX=${placeholder "out"}" "PREFIX=${placeholder "out"}"
]; ];
@ -62,6 +62,7 @@ stdenv.mkDerivation rec {
postPatch = '' postPatch = ''
patchShebangs quotehostinfo patchShebangs quotehostinfo
substituteInPlace Makefile --replace strip '${stdenv.cc.targetPrefix}strip'
''; '';
meta = with lib; { meta = with lib; {