1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00

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 ];
cmakeFlags = stdenv.lib.optional
(stdenv.hostPlatform.libc == "msvcrt") "-DCMAKE_SYSTEM_NAME=Windows";
outputs = [ "out" "dev" "lib" ];
doCheck = true;