diff options
author | Matthias C. M. Troffaes <matthias.troffaes@gmail.com> | 2018-09-17 09:22:29 +0100 |
---|---|---|
committer | Matthias C. M. Troffaes <matthias.troffaes@gmail.com> | 2018-09-17 09:37:32 +0100 |
commit | e4f196810098ba7fce635705a9e6a1298665a27b (patch) | |
tree | db0c17a60c6e8e6ad4b9b8a388cfec16e5423dbf /pkgs | |
parent | 5cc6958938559ad608eaa8b495cecd5247f43b80 (diff) |
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.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/compression/brotli/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/compression/brotli/default.nix b/pkgs/tools/compression/brotli/default.nix index a63721466dbcd..971a90a84f4ce 100644 --- a/pkgs/tools/compression/brotli/default.nix +++ b/pkgs/tools/compression/brotli/default.nix @@ -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; |