aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-09-23 16:31:12 -0700
committerElliott Hughes <enh@google.com>2016-09-23 16:32:41 -0700
commit2cfdbc9216025057bb8bd2abe20fbe8163473e32 (patch)
tree130bf8c2a32f7a2e39df83cee44875e84939cf4d
parentc3cdf801ca7315321914a07569f5379af2955058 (diff)
downloadltrace-main.tar.gz
Make ltrace build again.HEADmastermain
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.mk31
1 files changed, 22 insertions, 9 deletions
diff --git a/Android.mk b/Android.mk
index 4876619..6e62919 100644
--- a/Android.mk
+++ b/Android.mk
@@ -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)