From 62b5971abeb3298c30667317179855cb45ca5448 Mon Sep 17 00:00:00 2001 From: QBos07 <62326551+QBos07@users.noreply.github.com> Date: Mon, 12 Jul 2021 20:52:35 +0200 Subject: Disable source-highlighting for static build Fixes #1487 diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index e6eec2a..75c683d 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -230,10 +230,16 @@ do_gdb_backend() if [ "${static}" = "y" ]; then cflags+=" -static" ldflags+=" -static" + # There is no static libsource-highlight + extra_config+=("--disable-source-highlight") fi if [ "${static_libstdcxx}" = "y" ]; then ldflags+=" -static-libgcc" ldflags+=" -static-libstdc++" + # libsource-highlight is a dynamic library that uses exception + # exceptions are handled by libstdc++ + # this combination is very buggy, so configure don't use it and abort + extra_config+=("--disable-source-highlight") fi -- cgit v0.10.2-6-g49f6