summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2021-07-18 07:34:07 (GMT)
committerChris Packham <judge.packham@gmail.com>2021-07-18 07:34:07 (GMT)
commite33843744fad1c2bd15cdc7f86a16bff9a7fedb4 (patch)
tree689747627050d2347912e5ab35a28349032ca5b6
parent755850d07ec4e8dc44787d1a0e35fe19507f17f6 (diff)
parent62b5971abeb3298c30667317179855cb45ca5448 (diff)
Merge pull request #1559 from QBos07/patch-2
Disable source-highlighting for static build
-rw-r--r--scripts/build/debug/300-gdb.sh6
1 files changed, 6 insertions, 0 deletions
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