Merge pull request #1559 from QBos07/patch-2

Disable source-highlighting for static build
This commit is contained in:
Chris Packham 2021-07-18 19:34:07 +12:00
commit e33843744f

View File

@ -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