summaryrefslogtreecommitdiffstats
path: root/package/gettext
diff options
context:
space:
mode:
author"Steven J. Hill"2007-02-06 19:17:08 +0100
committer"Steven J. Hill"2007-02-06 19:17:08 +0100
commit3c28ac08814b8640ccf1584b9c24e7adfed65cee (patch)
tree94d1f0ad351d1c3f81b24d741eddda648261d959 /package/gettext
parentWhen cleaning, get rid of the binary from the filesystem area too. (diff)
downloadbuildroot-3c28ac08814b8640ccf1584b9c24e7adfed65cee.tar.gz
buildroot-3c28ac08814b8640ccf1584b9c24e7adfed65cee.tar.xz
buildroot-3c28ac08814b8640ccf1584b9c24e7adfed65cee.zip
Fix building of gettext/libintl when using an external toolchain.
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