diff options
author | Elliott Hughes <enh@google.com> | 2016-09-23 16:31:12 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2016-09-23 16:32:41 -0700 |
commit | 2cfdbc9216025057bb8bd2abe20fbe8163473e32 (patch) | |
tree | 130bf8c2a32f7a2e39df83cee44875e84939cf4d | |
parent | c3cdf801ca7315321914a07569f5379af2955058 (diff) | |
download | ltrace-main.tar.gz |
It's still not very useful, but we do now build enough of elfutils with
clang that we can build this, and my other makefile changes here let
ltrace actually decode some of the function arguments (though there's
some gaps because it's expecting glibc which has far less _FORTIFY_SOURCE
than we do, for example).
Test: manual
Change-Id: I8ff9cb267b917aa052ac8cc3a2eec05be3d14479
-rw-r--r-- | Android.mk | 31 |
1 files changed, 22 insertions, 9 deletions
@@ -14,11 +14,6 @@ # limitations under the License. # -# If you actually want to use ltrace, let android-bionic@ know. -# One of its dependencies (libelf) won't build with clang, -# and we want to know whether anyone actually cares... -ifeq (true,false) - LOCAL_PATH := $(call my-dir) # ------------------------------------------------------------------------- @@ -160,8 +155,8 @@ LOCAL_CFLAGS += \ -DVERSION='"0.7.91"' \ -D_FILE_OFFSET_BITS=64 \ -D_LARGE_FILES=1 \ - -DPKGDATADIR=NULL \ - -DSYSCONFDIR='"/etc/"' \ + -DPKGDATADIR='"/system/etc/"' \ + -DSYSCONFDIR='"/system/etc/"' \ -Drindex=strrchr \ LOCAL_CFLAGS_32 += -DSIZEOF_LONG=4 @@ -173,7 +168,7 @@ LOCAL_CFLAGS += \ -Wno-unused-parameter \ -Wno-sign-compare \ -LOCAL_STATIC_LIBRARIES := libelf +LOCAL_STATIC_LIBRARIES := libelf libz LOCAL_SHARED_LIBRARIES := \ libcutils \ @@ -192,4 +187,22 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk include $(BUILD_EXECUTABLE) -endif + +include $(CLEAR_VARS) +LOCAL_MODULE := syscalls.conf +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT)/etc +LOCAL_SRC_FILES := etc/syscalls.conf +include $(BUILD_PREBUILT) +include $(CLEAR_VARS) +LOCAL_MODULE := libc.so.conf +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT)/etc +LOCAL_SRC_FILES := etc/libc.so.conf +include $(BUILD_PREBUILT) +include $(CLEAR_VARS) +LOCAL_MODULE := libm.so.conf +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT)/etc +LOCAL_SRC_FILES := etc/libm.so.conf +include $(BUILD_PREBUILT) |