summaryrefslogtreecommitdiffstats
path: root/package/Makefile.package.in
diff options
context:
space:
mode:
authorPeter Korsgaard2012-01-18 15:54:55 +0100
committerPeter Korsgaard2012-01-18 16:02:51 +0100
commit1b07928aa647074f790a01f0302f241391b5c923 (patch)
tree8f7f552fea831f6482ca255f501e82650cfc3d22 /package/Makefile.package.in
parentxapp_mkfontdir: removed redundant HOST_FOO_DEPENDENCIES (diff)
downloadbuildroot-1b07928aa647074f790a01f0302f241391b5c923.tar.gz
buildroot-1b07928aa647074f790a01f0302f241391b5c923.tar.xz
buildroot-1b07928aa647074f790a01f0302f241391b5c923.zip
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 <jacmet@sunsite.dk>
Diffstat (limited to 'package/Makefile.package.in')
-rw-r--r--package/Makefile.package.in6
1 files changed, 1 insertions, 5 deletions
diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index a27804b81..e57bfed1b 100644
--- a/package/Makefile.package.in
+++ b/package/Makefile.package.in
@@ -542,11 +542,7 @@ $(2)_OVERRIDE_SRCDIR = $($(2)_SITE)
endif
endif
-ifndef $(2)_DEPENDENCIES
- ifdef $(3)_DEPENDENCIES
- $(2)_DEPENDENCIES = $(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES)))
- endif
-endif
+$(2)_DEPENDENCIES ?= $(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES)))
$(2)_INSTALL_STAGING ?= NO
$(2)_INSTALL_IMAGES ?= NO