diff options
author | Michał Zagórski <zagura6+github@gmail.com> | 2024-11-19 07:36:02 +0100 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2024-12-16 08:37:33 +1300 |
commit | 9c444f4ca6cfe11ebb2d06e1f3e9822869ecbbfd (patch) | |
tree | 67e0763e14a89d94c351c45e13598f63fe5025d2 | |
parent | ab5c23ce70da034fff035f5c5aad4f052db0cc82 (diff) | |
download | crosstool-ng-9c444f4ca6cfe11ebb2d06e1f3e9822869ecbbfd.tar.gz crosstool-ng-9c444f4ca6cfe11ebb2d06e1f3e9822869ecbbfd.tar.bz2 crosstool-ng-9c444f4ca6cfe11ebb2d06e1f3e9822869ecbbfd.zip |
gdb: build native gdb with static libexpat
Use --with-libexpat-type=static to search for static libexpat in gdb
native. This should fix #2230.
Signed-off-by: Michał Zagórski <zagura6+github@gmail.com>
-rw-r--r-- | scripts/build/debug/300-gdb.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index ce77260a..67c7069e 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -175,8 +175,14 @@ do_debug_gdb_build() # where libexpat for build platform lives, which is # unacceptable for cross-compiling. # - native_extra_config+=("--with-expat=${CT_BUILDTOOLS_PREFIX_DIR}") + native_extra_config+=("--with-expat=y") + native_extra_config+=("--with-libexpat-prefix=${CT_BUILDTOOLS_PREFIX_DIR}") + # Without specifying libexpat type, configure would look for -lexpat + # and try to link with shared library, set library type explicitly. + if [ "${CT_GDB_NATIVE_STATIC}" = "y" ]; then + native_extra_config+=("--with-libexpat-type=static") + fi do_gdb_backend \ buildtype=native \ subdir=${subdir} \ |