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:
parent
5cc6958938
commit
e4f1968100
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue