fix gcc build
authorFelix Fietkau <nbd@openwrt.org>
Tue, 19 Jul 2005 00:15:44 +0000 (00:15 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 19 Jul 2005 00:15:44 +0000 (00:15 +0000)
SVN-Revision: 1499

openwrt/toolchain/gcc/gcc-uclibc-3.x.mk

index eb1fbe2ced428e2ca74362e0cd98739240d8fbc9..4799739d41ee5b36c2bcd18cd6aa45b895f8214b 100644 (file)
@@ -145,7 +145,10 @@ GCC_BUILD_DIR2:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-final
 $(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(STAGING_DIR)/lib/libc.a
        mkdir -p $(GCC_BUILD_DIR2)
        # Important!  Required for limits.h to be fixed.
+       rm -rf $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/sys-include
        ln -sf ../include $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/sys-include
+       rm -rf $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib
+       ln -sf ../lib $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/
        (cd $(GCC_BUILD_DIR2); PATH=$(TARGET_PATH) \
                $(GCC_DIR)/configure \
                --prefix=$(STAGING_DIR) \