git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commite4f196810098ba7fce635705a9e6a1298665a27b authorMatthias C. M. Troffaes <matthias.troffaes@gmail.com> dateMon 17 Sep 2018, 09:22 (8 years ago) parent5cc6958
1 file changed+3
pkgs/tools/compression/brotli/default.nix+3
pkgs/tools/compression/brotli/default.nix+3
@@ -15,6 +15,9 @@ stdenv.mkDerivation rec {
1515
1616 nativeBuildInputs = [ cmake ];
1717
18+ cmakeFlags = stdenv.lib.optional
19+ (stdenv.hostPlatform.libc == "msvcrt") "-DCMAKE_SYSTEM_NAME=Windows";
20+
1821 outputs = [ "out" "dev" "lib" ];
1922
2023 doCheck = true;