brotli: ensure CMAKE_SYSTEM_NAME=Windows on mingw cross builds

CMAKE passes the flag -rdynamic otherwise (which is not recognized by mingw).
Setting the appropriate flag avoids this problem and allows the build
to succeed.
This commit is contained in:
Matthias C. M. Troffaes 2018-09-17 09:22:29 +01:00
parent 5cc6958938
commit e4f1968100

View File

@ -15,6 +15,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
cmakeFlags = stdenv.lib.optional
(stdenv.hostPlatform.libc == "msvcrt") "-DCMAKE_SYSTEM_NAME=Windows";
outputs = [ "out" "dev" "lib" ]; outputs = [ "out" "dev" "lib" ];
doCheck = true; doCheck = true;