summaryrefslogtreecommitdiffstats
path: root/package/pkg-autotools.mk
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2014-07-18 23:02:31 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-19 11:35:22 +0200
commitbea8f267d550290c994d9616b98bb9c1cd9e03ba (patch)
tree81321b7a2a4e1674fcd29d90326501a54c27e0b6 /package/pkg-autotools.mk
parent4638e2b97f783346c2c9e18f233a35755e49e7dc (diff)
downloadbuildroot-bea8f267d550290c994d9616b98bb9c1cd9e03ba.tar.gz
buildroot-bea8f267d550290c994d9616b98bb9c1cd9e03ba.zip
infra/pkg-autotools: cleanup the gettextize step
Align the way we call gettextize to the way we call autoreconf: - provide the $(GETTEXTIZE) variable - pass $(HOST_CONFIGURE_OPTS) in the environment - pass the fully-qualified path to autom4te - use of -f even if the package provides its own options Some eye-candy in the output of gettextize. Thanks to Gustavo for pointing out the discrepancy between the way we call gettextize and the way we call autoreconf, and to Thomas for the live debug session. ;-) Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pkg-autotools.mk')
-rw-r--r--package/pkg-autotools.mk10
1 files changed, 3 insertions, 7 deletions
diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk
index 557413dba2..53bca30645 100644
--- a/package/pkg-autotools.mk
+++ b/package/pkg-autotools.mk
@@ -95,12 +95,8 @@ ifndef $(2)_GETTEXTIZE
endif
endif
-ifndef $(2)_GETTEXTIZE_OPT
- ifdef $(3)_GETTEXTIZE_OPT
- $(2)_GETTEXTIZE_OPT = $$($(3)_GETTEXTIZE_OPT)
- else
- $(2)_GETTEXTIZE_OPT ?= -f
- endif
+ifeq ($(4),host)
+ $(2)_GETTEXTIZE_OPT ?= $$($(3)_GETTEXTIZE_OPT)
endif
ifeq ($(4),host)
@@ -220,7 +216,7 @@ endif
#
define GETTEXTIZE_HOOK
@$$(call MESSAGE,"Gettextizing")
- $(Q)cd $$($$(PKG)_SRCDIR) && $(HOST_DIR)/usr/bin/gettextize $$($$(PKG)_GETTEXTIZE_OPT)
+ $(Q)cd $$($$(PKG)_SRCDIR) && $$(GETTEXTIZE) $$($$(PKG)_GETTEXTIZE_OPT)
endef
#
OpenPOWER on IntegriCloud