From 1b07928aa647074f790a01f0302f241391b5c923 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Wed, 18 Jan 2012 15:54:55 +0100 Subject: Only derrive HOST_FOO_DEPENDENCIES from FOO_DEPENDENCIES if not set, not nonempty In make, ifndef VAR means if 'VAR is not set to the empty string', and NOT 'VAR is not defined', which meant that you couldn't specify empty FOO_HOST_DEPENDENCIES. Signed-off-by: Peter Korsgaard --- package/Makefile.autotools.in | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'package/Makefile.autotools.in') diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in index 495a07580..0f9b2c60f 100644 --- a/package/Makefile.autotools.in +++ b/package/Makefile.autotools.in @@ -203,12 +203,9 @@ endef # This must be repeated from GENTARGETS_INNER, otherwise we get an empty # _DEPENDENCIES if _AUTORECONF is YES. Also filter the result of _AUTORECONF # away from the non-host rule -ifndef $(2)_DEPENDENCIES - ifdef $(3)_DEPENDENCIES - $(2)_DEPENDENCIES = $(filter-out host-automake host-autoconf host-libtool,\ +$(2)_DEPENDENCIES ?= $(filter-out host-automake host-autoconf host-libtool,\ $(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES)))) - endif -endif + ifeq ($$($(2)_AUTORECONF),YES) $(2)_PRE_CONFIGURE_HOOKS += AUTORECONF_HOOK -- cgit v1.2.3-55-g7522