aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-07-19 00:15:44 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-07-19 00:15:44 +0000
commit1e131830a542d4b4446be4a082a2000a9e3464b5 (patch)
treee9f5830693ff8fb281dfb00c96e3cee654871511 /toolchain
parent81a2508426927419fcdc1e6acdca72805c8d6546 (diff)
downloadmaster-187ad058-1e131830a542d4b4446be4a082a2000a9e3464b5.tar.gz
master-187ad058-1e131830a542d4b4446be4a082a2000a9e3464b5.tar.bz2
master-187ad058-1e131830a542d4b4446be4a082a2000a9e3464b5.zip
fix gcc build
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1499 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/gcc-uclibc-3.x.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/toolchain/gcc/gcc-uclibc-3.x.mk b/toolchain/gcc/gcc-uclibc-3.x.mk
index eb1fbe2ced..4799739d41 100644
--- a/toolchain/gcc/gcc-uclibc-3.x.mk
+++ b/toolchain/gcc/gcc-uclibc-3.x.mk
@@ -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) \