diff options
author | Chris Packham <judge.packham@gmail.com> | 2020-08-30 20:53:42 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-30 20:53:42 +1200 |
commit | baa746887d3ee6f0336632c2a030ff6812dce4f3 (patch) | |
tree | 420b5b3a08e2161600111bb89cbde397d16fe9d6 | |
parent | 23f17ab5cbff7a6ae46816553a166ff782da0c9a (diff) | |
parent | 041427aec949a933cba415de9ae7fac29f7a7682 (diff) | |
download | crosstool-ng-baa746887d3ee6f0336632c2a030ff6812dce4f3.tar.gz crosstool-ng-baa746887d3ee6f0336632c2a030ff6812dce4f3.tar.bz2 crosstool-ng-baa746887d3ee6f0336632c2a030ff6812dce4f3.zip |
Merge pull request #1347 from stephanosio/fix_gdb_static_libstdcxx
Fix CT_GDB_NATIVE_STATIC_LIBSTDCXX
-rw-r--r-- | scripts/build/debug/300-gdb.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index 91393317..b0ea29b2 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -146,7 +146,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[@]}" @@ -236,7 +236,8 @@ do_gdb_backend() cflags+=" -static" ldflags+=" -static" fi - if [ "${static_libstdc}" = "y" ]; then + if [ "${static_libstdcxx}" = "y" ]; then + ldflags+=" -static-libgcc" ldflags+=" -static-libstdc++" fi |