Android: fix libz dependency for host targets
authorRob Herring <robh@kernel.org>
Tue, 21 Mar 2017 18:51:18 +0000 (13:51 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Mar 2017 17:52:35 +0000 (17:52 +0000)
Commit 6facb0c08fa1 ("android: fix libz dynamic library dependencies")
added libz as a dependency, but this breaks host targets as the host
dependency is libz-host. As no host lib needs libz, just remove the
dependency for them.

Fixes: 6facb0c08fa1 "android: fix libz dynamic library dependencies"
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Android.common.mk

index 0130c585aed13f4638863ee947718aaa6bab6243..062f8328d87daf2b1f5f6d57fa76d3f7cf0961c9 100644 (file)
@@ -126,4 +126,6 @@ endif
 # Quiet down the build system and remove any .h files from the sources
 LOCAL_SRC_FILES := $(patsubst %.h, , $(LOCAL_SRC_FILES))
 
+ifneq ($(LOCAL_IS_HOST_MODULE),true)
 LOCAL_SHARED_LIBRARIES += libz
+endif