Build acc tool with static rather than shared library.

OS X does not allow relative shared library path names in compiled apps,
so we have to create and link with a static library version of libacc.
This commit is contained in:
Jack Palevich 2009-11-12 14:57:50 +08:00
parent 13edb721c0
commit 464407588f
2 changed files with 5 additions and 4 deletions

View File

@ -11,7 +11,7 @@ LOCAL_SHARED_LIBRARIES := libdl libcutils
include $(BUILD_SHARED_LIBRARY)
# Shared library for host
# Static library for host
# ========================================================
include $(CLEAR_VARS)
@ -23,7 +23,7 @@ LOCAL_CFLAGS := -O0 -g
LOCAL_STATIC_LIBRARIES := libcutils
LOCAL_LDLIBS := -ldl
include $(BUILD_HOST_SHARED_LIBRARY)
include $(BUILD_HOST_STATIC_LIBRARY)
# Build children
# ========================================================

View File

@ -8,8 +8,9 @@ LOCAL_MODULE:= acc
LOCAL_SRC_FILES:= \
main.cpp
LOCAL_SHARED_LIBRARIES := \
libacc
LOCAL_STATIC_LIBRARIES := \
libacc \
libcutils
LOCAL_MODULE_TAGS := tests