Pārlūkot izejas kodu

fix stripping for toolchain, toolchain dir includes target libgcc

Waldemar Brodkorb 10 gadi atpakaļ
vecāks
revīzija
7181de8c14
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      toolchain/glibc/Makefile

+ 3 - 2
toolchain/glibc/Makefile

@@ -75,8 +75,9 @@ $(WRKBUILD)/.fixup:
 	rm -rf $(STAGING_TARGET_DIR)/usr/lib/gconv
 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 $(TOOLCHAIN_DIR)/usr
+	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 $@