Also export necessary symbols to preempt calls from libart.so Bug: 15345057 Bug: 15426766 (cherry picked from commit 96e0cfa721925550b1cc39cdfd6084a878e6ffe2) Change-Id: I0930d96edde7dc0636e8d50d7c778f099237f748
63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
# TODO: Trying to link libsigchain as a static library prevents
|
|
# static linker from exporting necessary symbols. So as a workaround
|
|
# we use sigchain.o
|
|
LOCAL_SRC_FILES:= \
|
|
app_main.cpp \
|
|
sigchain_proxy.cpp
|
|
|
|
LOCAL_LDFLAGS := -Wl,--version-script,art/sigchainlib/version-script.txt -Wl,--export-dynamic
|
|
LOCAL_CPPFLAGS := -std=c++11 -Iart
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libdl \
|
|
libcutils \
|
|
libutils \
|
|
liblog \
|
|
libbinder \
|
|
libandroid_runtime
|
|
|
|
LOCAL_MODULE:= app_process
|
|
LOCAL_MULTILIB := both
|
|
LOCAL_MODULE_STEM_32 := app_process32
|
|
LOCAL_MODULE_STEM_64 := app_process64
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
# Create a symlink from app_process to app_process32 or 64
|
|
# depending on the target configuration.
|
|
include $(BUILD_SYSTEM)/executable_prefer_symlink.mk
|
|
|
|
# Build a variant of app_process binary linked with ASan runtime.
|
|
# ARM-only at the moment.
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
# see comment above (~l5)
|
|
LOCAL_SRC_FILES:= \
|
|
app_main.cpp \
|
|
sigchain_proxy.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcutils \
|
|
libutils \
|
|
liblog \
|
|
libbinder \
|
|
libandroid_runtime
|
|
|
|
LOCAL_LDFLAGS := -ldl -Wl,--version-script,art/sigchainlib/version-script.txt -Wl,--export-dynamic
|
|
LOCAL_CPPFLAGS := -std=c++11 -Iart
|
|
|
|
LOCAL_MODULE := app_process__asan
|
|
LOCAL_MODULE_TAGS := eng
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/asan
|
|
LOCAL_MODULE_STEM := app_process
|
|
LOCAL_ADDRESS_SANITIZER := true
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
endif # ifeq($(TARGET_ARCH),arm)
|