aboutsummaryrefslogtreecommitdiff
path: root/package/pkg-autotools.mk
diff options
context:
space:
mode:
authorGravatar Rick Taylor <tropicalstormuk@gmail.com>2014-07-18 10:12:19 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-23 23:49:10 +0200
commit5af28fe6a10976eee7d9e9006baa90543d6dd025 (patch)
treec66f4408883588dfd1e9fb7da1cc84d487aeb86d /package/pkg-autotools.mk
parent0fe134f08280f0019403c41ac9573a233c94e3b5 (diff)
downloadbuildroot-5af28fe6a10976eee7d9e9006baa90543d6dd025.tar.gz
buildroot-5af28fe6a10976eee7d9e9006baa90543d6dd025.tar.bz2
pkg-autotools: add support for <pkg>_AUTORECONF_ENV
This commit improves the autotools-package infrastructure to support a <pkg>_AUTORECONF_ENV variable, which allows a package maintainer to pass additional variables in the environment of the autoreconf execution. This is useful in the situation where configure.ac contains shell commands using environment variables that are only executed when autoreconf is run. Signed-off-by: Rick Taylor <rick.taylor@cassidian.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pkg-autotools.mk')
-rw-r--r--package/pkg-autotools.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk
index 53bca30645..4443c72b05 100644
--- a/package/pkg-autotools.mk
+++ b/package/pkg-autotools.mk
@@ -224,7 +224,7 @@ endef
#
define AUTORECONF_HOOK
@$$(call MESSAGE,"Autoreconfiguring")
- $$(Q)cd $$($$(PKG)_SRCDIR) && $$(AUTORECONF) $$($$(PKG)_AUTORECONF_OPT)
+ $$(Q)cd $$($$(PKG)_SRCDIR) && $$($$(PKG)_AUTORECONF_ENV) $$(AUTORECONF) $$($$(PKG)_AUTORECONF_OPT)
$$(Q)if test "$$($$(PKG)_LIBTOOL_PATCH)" = "YES"; then \
for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \
ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' $$$$i | \