glew: support cross-compilation
This commit is contained in:
parent
cadf0193dd
commit
805d4ee7da
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
makeFlags = [
|
||||
"SYSTEM=${if stdenv.hostPlatform.isMinGW then "mingw" else stdenv.hostPlatform.parsed.kernel.name}"
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
"LD=${stdenv.cc.targetPrefix}cc"
|
||||
"AR=${stdenv.cc.targetPrefix}ar"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
Loading…
Reference in a new issue