summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-04-14 20:07:02 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2016-04-14 20:07:11 +0200
commit616558f6a4d1a69a47e1d93da1c964c46159bda7 (patch)
tree9bd03c7201e84d329de2ea911efde3e1ebda6589 /toolchain/gcc/Makefile
parent971d7c5c179fc0547b08557cc00caccbe90f2ef5 (diff)
fix debugging of threaded apps
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 2b620bf07..4471bd4dd 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -328,10 +328,12 @@ $(WRKBUILD)/.final:
rm -rf $(TOOLCHAIN_DIR)/usr/share
# cleanup unneeded libtool files
-find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -exec rm {} \;
- # strip target libs and host tools for toolchain builds
+ # strip target libs and host tools for toolchain builds in non-Debug mode
+ifeq ($(ADK_DEBUG),)
PATH="$(TARGET_PATH)" debug='0' prefix='${TARGET_CROSS}' ${BASH} ${SCRIPT_DIR}/rstrip.sh \
$(STAGING_TARGET_DIR) $(TOOLCHAIN_DIR)/usr/lib/gcc/$(GNU_TARGET_NAME)
debug='0' prefix=' ' ${BASH} ${SCRIPT_DIR}/rstrip.sh $(TOOLCHAIN_DIR)/usr/bin
+endif
touch $@
include ${ADK_TOPDIR}/mk/toolchain.mk