@@ -1,4 +1,5 @@
1{ lib, stdenv, fetchurl
1{ lib, stdenv, fetchurl
2, enableLargeConfig ? false # doc: https://github.com/ivmai/bdwgc/blob/v7.6.6/doc/README.macros#L179
3, enableLargeConfig ? false # doc: https://github.com/ivmai/bdwgc/blob/v7.6.6/doc/README.macros#L179
@@ -23,13 +24,18 @@ stdenv.mkDerivation rec {
25 # https://github.com/ivmai/bdwgc/pull/208
26 # https://github.com/ivmai/bdwgc/pull/208
26− lib.optional stdenv.hostPlatform.isRiscV ./riscv.patch;
27+ lib.optional stdenv.hostPlatform.isRiscV ./riscv.patch
28+ # boehm-gc whitelists GCC threading models
29+ ++ lib.optional stdenv.hostPlatform.isMinGW ./mcfgthread.patch;
28 configureFlags =
31 configureFlags =
29 [ "--enable-cplusplus" "--with-libatomic-ops=none" ]
32 [ "--enable-cplusplus" "--with-libatomic-ops=none" ]
30 ++ lib.optional enableLargeConfig "--enable-large-config"
33 ++ lib.optional enableLargeConfig "--enable-large-config"
31 ++ lib.optional (stdenv.hostPlatform.libc == "musl") "--disable-static";
34 ++ lib.optional (stdenv.hostPlatform.libc == "musl") "--disable-static";
37+ lib.optional stdenv.hostPlatform.isMinGW autoreconfHook;
33 doCheck = true; # not cross;
39 doCheck = true; # not cross;
35 enableParallelBuilding = true;
41 enableParallelBuilding = true;