From 31ef1037bf7b66e949ecf52a1a29672d43ebfef8 Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Tue, 21 Aug 2012 14:40:16 +0800 Subject: Added BUILD_HOST_static to build statically linked executable/shared-lib Statically linked executable/shared-lib (eg. SDK tools) are useful in sandboxed environment. In BUILD_HOST_static zipalign needs -lpthread indirectly: zipalign->libutils.a->liblog.a->logd_write.c->pthread Change-Id: I615f574e918c83ed1ab82db2453b69d0420cb59c --- tools/zipalign/Android.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/zipalign') diff --git a/tools/zipalign/Android.mk b/tools/zipalign/Android.mk index 9763bd2..089c68b 100644 --- a/tools/zipalign/Android.mk +++ b/tools/zipalign/Android.mk @@ -28,6 +28,10 @@ else LOCAL_LDLIBS += -lz endif +ifneq ($(strip $(BUILD_HOST_static)),) +LOCAL_LDLIBS += -lpthread +endif # BUILD_HOST_static + LOCAL_MODULE := zipalign include $(BUILD_HOST_EXECUTABLE) -- cgit v1.1