mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-30 16:14:09 +00:00
Merge pull request #1347 from stephanosio/fix_gdb_static_libstdcxx
Fix CT_GDB_NATIVE_STATIC_LIBSTDCXX
This commit is contained in:
commit
baa746887d
@ -146,7 +146,7 @@ do_debug_gdb_build()
|
|||||||
cflags="${CT_ALL_TARGET_CFLAGS}" \
|
cflags="${CT_ALL_TARGET_CFLAGS}" \
|
||||||
ldflags="${CT_ALL_TARGET_LDFLAGS}" \
|
ldflags="${CT_ALL_TARGET_LDFLAGS}" \
|
||||||
static="${CT_GDB_NATIVE_STATIC}" \
|
static="${CT_GDB_NATIVE_STATIC}" \
|
||||||
static_libstdc="${CT_GDB_NATIVE_STATIC_LIBSTDC}" \
|
static_libstdcxx="${CT_GDB_NATIVE_STATIC_LIBSTDCXX}" \
|
||||||
prefix=/usr \
|
prefix=/usr \
|
||||||
destdir="${CT_DEBUGROOT_DIR}" \
|
destdir="${CT_DEBUGROOT_DIR}" \
|
||||||
"${native_extra_config[@]}"
|
"${native_extra_config[@]}"
|
||||||
@ -236,7 +236,8 @@ do_gdb_backend()
|
|||||||
cflags+=" -static"
|
cflags+=" -static"
|
||||||
ldflags+=" -static"
|
ldflags+=" -static"
|
||||||
fi
|
fi
|
||||||
if [ "${static_libstdc}" = "y" ]; then
|
if [ "${static_libstdcxx}" = "y" ]; then
|
||||||
|
ldflags+=" -static-libgcc"
|
||||||
ldflags+=" -static-libstdc++"
|
ldflags+=" -static-libstdc++"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user