summaryrefslogtreecommitdiff
path: root/include/package-defaults.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-05 18:02:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-05 18:02:54 +0000
commit06e754b1f73edc2e8357074bb1a10085e3cad553 (patch)
tree318cf541aead18dbff9ae3ed43ad1d516c8a06a4 /include/package-defaults.mk
parentc2cf1d04c902e83a667e21bbfff59ccf5b39759c (diff)
downloadmtk-20170518-06e754b1f73edc2e8357074bb1a10085e3cad553.zip
mtk-20170518-06e754b1f73edc2e8357074bb1a10085e3cad553.tar.gz
mtk-20170518-06e754b1f73edc2e8357074bb1a10085e3cad553.tar.bz2
replace config.guess and config.sub properly, even if they are in a subdirectory
SVN-Revision: 12148
Diffstat (limited to 'include/package-defaults.mk')
-rw-r--r--include/package-defaults.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/package-defaults.mk b/include/package-defaults.mk
index d72e02b..fd50cb4 100644
--- a/include/package-defaults.mk
+++ b/include/package-defaults.mk
@@ -76,10 +76,13 @@ CONFIGURE_VARS = \
CONFIGURE_PATH = .
CONFIGURE_CMD = ./configure
+replace_script=$(FIND) $(1) -name $(2) | $(XARGS) -n1 cp $(SCRIPT_DIR)/$(2);
+
define Build/Configure/Default
(cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/$(strip $(3)); \
if [ -x $(CONFIGURE_CMD) ]; then \
- $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/$(3)/ && \
+ $(call replace_script,$(PKG_BUILD_DIR)/$(3),config.guess) \
+ $(call replace_script,$(PKG_BUILD_DIR)/$(3),config.sub) \
$(CONFIGURE_VARS) \
$(2) \
$(CONFIGURE_CMD) \