summaryrefslogtreecommitdiffstats
path: root/package/gettext
diff options
context:
space:
mode:
Diffstat (limited to 'package/gettext')
-rw-r--r--package/gettext/gettext.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk
index c9b6fb922..d3f331c5c 100644
--- a/package/gettext/gettext.mk
+++ b/package/gettext/gettext.mk
@@ -21,6 +21,10 @@ $(GETTEXT_DIR)/.unpacked: $(DL_DIR)/$(GETTEXT_SOURCE)
toolchain/patch-kernel.sh $(GETTEXT_DIR) package/gettext/ gettext\*.patch
touch $(GETTEXT_DIR)/.unpacked
+ifeq ($(strip $(BR2_TOOLCHAIN_EXTERNAL)),y)
+IGNORE_EXTERNAL_GETTEXT:=--with-included-gettext
+endif
+
$(GETTEXT_DIR)/.configured: $(GETTEXT_DIR)/.unpacked
(cd $(GETTEXT_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
@@ -95,6 +99,7 @@ $(GETTEXT_DIR)/.configured: $(GETTEXT_DIR)/.unpacked
--mandir=/usr/man \
--infodir=/usr/info \
--disable-libasprintf \
+ $(IGNORE_EXTERNAL_GETTEXT) \
);
touch $(GETTEXT_DIR)/.configured