summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Anders <dave123@abcsinc.com>2006-02-10 18:28:12 +0000
committerDavid Anders <dave123@abcsinc.com>2006-02-10 18:28:12 +0000
commit93ce46472eed8db2b4b8c0d4b057b21cf8c9600d (patch)
tree80efe9b85aafd6b69fac428e99b985f92ffc7c46
parent88671dd3586caaac97d091f7faef63fb44757d55 (diff)
Fix gcc-clean so it doesn't remove binutils binaries per case 0000517
-rw-r--r--toolchain/gcc/gcc-uclibc-3.x.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/toolchain/gcc/gcc-uclibc-3.x.mk b/toolchain/gcc/gcc-uclibc-3.x.mk
index b6ae0c55b..304324c8a 100644
--- a/toolchain/gcc/gcc-uclibc-3.x.mk
+++ b/toolchain/gcc/gcc-uclibc-3.x.mk
@@ -136,10 +136,9 @@ gcc_initial: uclibc-configured binutils $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAM
gcc_initial-clean:
rm -rf $(GCC_BUILD_DIR1)
- rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
gcc_initial-dirclean:
- rm -rf $(GCC_BUILD_DIR1)
+ rm -rf $(GCC_BUILD_DIR1) $(GCC_DIR)
#############################################################
#
@@ -241,7 +240,6 @@ endif
$(TARGET_DIR)/lib/libgcc_s.so.1: $(GCC_BUILD_DIR2)/.installed
# These are in /lib, so...
rm -rf $(TARGET_DIR)/usr/lib/libgcc_s*.so*
- -$(STRIP) $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s*.so.1
-cp -a $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s* $(TARGET_DIR)/lib/
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
-cp -a $(STAGING_DIR)/lib/libstdc++.so* $(TARGET_DIR)/lib/
@@ -262,9 +260,12 @@ gcc-source: $(DL_DIR)/$(GCC_SOURCE)
gcc-clean:
rm -rf $(GCC_BUILD_DIR2)
- rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
+ for prog in cpp gcc gcc-[0-9]* protoize unprotoize gcov gccbug cc; do \
+ rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-$$prog \
+ rm -f $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-$$prog; \
+ done
-gcc-dirclean:
+gcc-dirclean: gcc_initial-dirclean
rm -rf $(GCC_BUILD_DIR2)
#############################################################