summaryrefslogtreecommitdiff
path: root/openwrt/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
commit35d65986dd4160f0f6ae99570033efbdc131b69d (patch)
treef59c1a84ef5ea2b4691bcb4c7d2bb0e0c451c31b /openwrt/toolchain
parentfd6100c33d959e338ce5b7ca894d99d4a638830d (diff)
downloadmtk-20170518-35d65986dd4160f0f6ae99570033efbdc131b69d.zip
mtk-20170518-35d65986dd4160f0f6ae99570033efbdc131b69d.tar.gz
mtk-20170518-35d65986dd4160f0f6ae99570033efbdc131b69d.tar.bz2
fix gcc build
SVN-Revision: 1499
Diffstat (limited to 'openwrt/toolchain')
-rw-r--r--openwrt/toolchain/gcc/gcc-uclibc-3.x.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/openwrt/toolchain/gcc/gcc-uclibc-3.x.mk b/openwrt/toolchain/gcc/gcc-uclibc-3.x.mk
index eb1fbe2..4799739 100644
--- a/openwrt/toolchain/gcc/gcc-uclibc-3.x.mk
+++ b/openwrt/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) \