From e9cd702a9f3a5962efee6d5ace50837d184d8e40 Mon Sep 17 00:00:00 2001 From: Maksim Morozov Date: Sat, 27 May 2023 07:49:27 +0300 Subject: gdb: Static cross GDB is linked statically with std c++ library If static cross GDB configuration is selected, cross GDB will be linked statically with std c++ library, because there is no separate option for static std c++ library for cross GDB. The use of not existing variable CT_GDB_NATIVE_STATIC_LIBSTDC has been replaced with CT_GDB_NATIVE_STATIC_LIBSTDCXX. Signed-off-by: Maksim Morozov --- scripts/build/debug/300-gdb.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index eae53634..174fcc10 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -76,6 +76,7 @@ do_debug_gdb_build() ldflags="${CT_LDFLAGS_FOR_HOST}" \ prefix="${CT_PREFIX_DIR}" \ static="${CT_GDB_CROSS_STATIC}" \ + static_libstdcxx="${CT_GDB_CROSS_STATIC}" \ --with-sysroot="${CT_SYSROOT_DIR}" \ "${cross_extra_config[@]}" @@ -177,7 +178,7 @@ do_debug_gdb_build() cflags="${CT_ALL_TARGET_CFLAGS}" \ ldflags="${CT_ALL_TARGET_LDFLAGS}" \ static="${CT_GDB_NATIVE_STATIC}" \ - static_libstdc="${CT_GDB_NATIVE_STATIC_LIBSTDC}" \ + static_libstdcxx="${CT_GDB_NATIVE_STATIC_LIBSTDCXX}" \ prefix=/usr \ destdir="${CT_DEBUGROOT_DIR}" \ "${native_extra_config[@]}" -- cgit v1.2.3