From ba52a4635a346f063760f8912b63502d37a68c3d Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Thu, 12 Mar 2020 13:44:37 +0100 Subject: [PATCH] Tweak build of bdw-gc * Remove --disable-threads, it was responsible for crashes with larger scores, see: https://lists.gnu.org/archive/html/lilypond-devel/2020-03/msg00339.html * Add --enable-large-config to avoid error on Windows with large scores: "Too many heap sections" from alloc.c --- scripts/build_native_deps.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/build_native_deps.sh b/scripts/build_native_deps.sh index 889085b..3ec23e5 100755 --- a/scripts/build_native_deps.sh +++ b/scripts/build_native_deps.sh @@ -309,10 +309,13 @@ build_gc() ( cd "$build" "$src/configure" $CONFIGURE_HOST --prefix="$GC_INSTALL" \ - --disable-shared --enable-static --with-pic \ - --disable-threads --disable-docs + --disable-shared --enable-static --disable-docs \ + --enable-large-config $MAKE -j$PROCS $MAKE install + + # Patch pkgconfig file to include -pthread. + sed_i "s|Cflags:.*|& -pthread|" "$GC_INSTALL/lib/pkgconfig/bdw-gc.pc" ) > "$LOG/gc.log" 2>&1 & wait $! || print_failed_and_exit "$LOG/gc.log" )