summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2013-10-02 21:37:58 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-10-02 21:42:19 (GMT)
commit97c687000a3f987440cc73bcfa26ae30bb9af28f (patch)
tree40c180dffe6595ef2c864ab0fd0c2ab4b6b6969a
parent6f21eefbe98c8c1f367aebbe013ebe549a5a9fe2 (diff)
downloadbuildroot-97c687000a3f987440cc73bcfa26ae30bb9af28f.tar.gz
buildroot-97c687000a3f987440cc73bcfa26ae30bb9af28f.tar.bz2
pkg-autotools.mk: default host AUTORECONF{,_OPT} to the target values
When we have patches touching configure.ac and hence need to set <pkg>_AUTORECONF = YES we also have to remember to set HOST_<pkg>_AUTORECONF = YES if we build both host and target versions, which is often forgotten (latest case was bison). Fix it by making the host versions of _AUTORECONF and _AUTORECONF_OPT default to whatever the target versions are set to, similar to how we handle a number of the other variables. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/pkg-autotools.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk
index b0eddde..9523529 100644
--- a/package/pkg-autotools.mk
+++ b/package/pkg-autotools.mk
@@ -70,12 +70,19 @@ ifndef $(2)_MAKE
endif
endif
+ifndef $(2)_AUTORECONF
+ ifdef $(3)_AUTORECONF
+ $(2)_AUTORECONF = $($(3)_AUTORECONF)
+ else
+ $(2)_AUTORECONF ?= NO
+ endif
+endif
+
$(2)_CONF_ENV ?=
$(2)_CONF_OPT ?=
$(2)_MAKE_ENV ?=
$(2)_MAKE_OPT ?=
-$(2)_AUTORECONF ?= NO
-$(2)_AUTORECONF_OPT ?=
+$(2)_AUTORECONF_OPT ?= $($(3)_AUTORECONF_OPT)
$(2)_INSTALL_OPT ?= install
$(2)_INSTALL_STAGING_OPT ?= DESTDIR=$$(STAGING_DIR) install
$(2)_INSTALL_TARGET_OPT ?= DESTDIR=$$(TARGET_DIR) install