diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-08-21 14:40:16 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2012-08-21 14:40:16 +0800 |
commit | 31ef1037bf7b66e949ecf52a1a29672d43ebfef8 (patch) | |
tree | ebff6a3c1062b41f40dc284995640bb567c7e6ec /tools | |
parent | 45cd00cd9e2feec187a6253b95e866cd10dfa20a (diff) | |
download | build-31ef1037bf7b66e949ecf52a1a29672d43ebfef8.zip build-31ef1037bf7b66e949ecf52a1a29672d43ebfef8.tar.gz build-31ef1037bf7b66e949ecf52a1a29672d43ebfef8.tar.bz2 |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/zipalign/Android.mk | 4 |
1 files changed, 4 insertions, 0 deletions
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) |