aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-10 16:36:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-10 16:36:47 +0000
commitd8595423b0a86c2fbf419f7447ebb59b3ed2420f (patch)
tree17f12a0857024bae27e83081a686e5cb73f9cf1f /toolchain/Makefile
parentd0de82ba87d155866dd494b0689d9e0de8b266ab (diff)
downloadmaster-187ad058-d8595423b0a86c2fbf419f7447ebb59b3ed2420f.tar.gz
master-187ad058-d8595423b0a86c2fbf419f7447ebb59b3ed2420f.tar.bz2
master-187ad058-d8595423b0a86c2fbf419f7447ebb59b3ed2420f.zip
fix gene2fs build on freebsd
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@5019 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/Makefile')
-rw-r--r--toolchain/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile
index ed563f00ed..2d8d88219d 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -22,6 +22,7 @@ all: install
download: $(TARGETS_DOWNLOAD)
install: $(TARGETS_INSTALL)
clean: $(TARGETS_CLEAN)
+$(TARGETS_INSTALL): $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)
uClibc-prepare: kernel-headers-prepare
ifeq ($(CONFIG_NATIVE_TOOLCHAIN),)
@@ -34,6 +35,10 @@ gcc-install: uClibc-install
TOOLCHAIN_STAMP_DIR:=$(STAGING_DIR)/stampfiles
+$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME):
+ @mkdir -p $@
+ @ln -sf ../lib $@/lib
+
$(TOOLCHAIN_STAMP_DIR):
mkdir -p $@
@@ -43,7 +48,7 @@ $(TOOLCHAIN_BUILD_DIR):
%-download: FORCE
$(MAKE) -C $(patsubst %-download,%,$@) download
-%-prepare: $(TOOLCHAIN_STAMP_DIR) $(STAGING_DIR) $(TOOLCHAIN_BUILD_DIR) FORCE
+%-prepare: $(TOOLCHAIN_STAMP_DIR) $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME) $(TOOLCHAIN_BUILD_DIR) FORCE
@[ -f $(TOOLCHAIN_STAMP_DIR)/.toolchain_$@ ] || { \
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare; \
}