glew: support cross-compilation

This commit is contained in:
Rick van Schijndel 2021-08-18 22:00:19 +02:00
parent cadf0193dd
commit 805d4ee7da

View file

@ -43,6 +43,9 @@ stdenv.mkDerivation rec {
makeFlags = [ makeFlags = [
"SYSTEM=${if stdenv.hostPlatform.isMinGW then "mingw" else stdenv.hostPlatform.parsed.kernel.name}" "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; enableParallelBuilding = true;