diff options
author | Kirill K. Smirnov <kirill.k.smirnov@gmail.com> | 2016-09-10 12:48:35 +0300 |
---|---|---|
committer | Kirill K. Smirnov <kirill.k.smirnov@gmail.com> | 2016-09-10 12:48:35 +0300 |
commit | 1a2024f96aa18dc8b81d1903d69697fbd2c9ec9f (patch) | |
tree | 596817da13eb37fc3c5258af28484af04bc19fad /scripts/build/internals.sh | |
parent | 3a36f30ad7f6c9ceac205f5eb189cb74922392a9 (diff) | |
download | crosstool-ng-1a2024f96aa18dc8b81d1903d69697fbd2c9ec9f.tar.gz crosstool-ng-1a2024f96aa18dc8b81d1903d69697fbd2c9ec9f.tar.bz2 crosstool-ng-1a2024f96aa18dc8b81d1903d69697fbd2c9ec9f.zip |
internals: properly strip gdbserver
On mingw target gdbserver is suffixed with '.exe', thus
plain 'strip gdbserver' fails.
Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
Diffstat (limited to 'scripts/build/internals.sh')
-rw-r--r-- | scripts/build/internals.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index 08a5be91..3f0260e8 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -8,6 +8,7 @@ do_finish() { local _type local strip_args local gcc_version + local exe_suffix CT_DoStep INFO "Cleaning-up the toolchain's directory" @@ -20,13 +21,21 @@ do_finish() { strip_args="--strip-all -v" ;; esac + case "$CT_TARGET" in + *mingw*) + exe_suffix=".exe" + ;; + *) + exe_suffix="" + ;; + esac CT_DoLog INFO "Stripping all toolchain executables" CT_Pushd "${CT_PREFIX_DIR}" # Strip gdbserver if [ "${CT_GDB_GDBSERVER}" = "y" ]; then CT_DoExecLog ALL "${CT_TARGET}-strip" ${strip_args} \ - "${CT_TARGET}/debug-root/usr/bin/gdbserver" + "${CT_TARGET}/debug-root/usr/bin/gdbserver${exe_suffix}" fi if [ "${CT_CC_gcc}" = "y" ]; then # We can not use the version in CT_CC_GCC_VERSION because |