summaryrefslogtreecommitdiff
path: root/toolchain/uClibc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/uClibc/Makefile')
-rw-r--r--toolchain/uClibc/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/toolchain/uClibc/Makefile b/toolchain/uClibc/Makefile
index 18b94916f..94a81391d 100644
--- a/toolchain/uClibc/Makefile
+++ b/toolchain/uClibc/Makefile
@@ -104,7 +104,9 @@ $(WRKBUILD)/.installed: $(WRKBUILD)/.install_headers
touch $@
$(WRKBUILD)/.fixup:
-ifneq ($(ADK_DEBUG),)
+ # DOSTRIP kills x86 target (ld.so can not map libc.so.0), always use DODEBUG
+ # DODEBUG compile failure linking with libgcc_eh.a on arm hf
+ifneq ($(ADK_LINUX_ARM),y)
$(SED) 's,DOSTRIP,DODEBUG,' ${WRKBUILD}/.config
endif
$(MAKE) -C $(WRKBUILD) \
@@ -118,8 +120,9 @@ endif
-find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -delete
ifeq ($(ADK_TOOLCHAIN),y)
# strip target libs and host tools for toolchain builds
- PATH="$(TARGET_PATH)" debug='0' prefix='${TARGET_CROSS}' ${BASH} ${SCRIPT_DIR}/rstrip.sh $(STAGING_TARGET_DIR)
- debug='0' prefix=' ' ${BASH} ${SCRIPT_DIR}/rstrip.sh $(STAGING_HOST_DIR)
+ 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 $@