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:
parent
13edb721c0
commit
464407588f
|
@ -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
|
||||
# ========================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue