aboutsummaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorDan Egnor <egnor@google.com>2009-05-15 12:43:43 -0700
committerDan Egnor <egnor@google.com>2009-05-15 12:43:43 -0700
commitae21bd0d82ab0b179d661f0c779e633b75bb4474 (patch)
tree87573d5a9625bdeb883d2364c3653785857eb7de /Android.mk
parent2949f58a438f6fd85f66a8b7ed4708042cde4b37 (diff)
downloadtcpdump-ae21bd0d82ab0b179d661f0c779e633b75bb4474.tar.gz
Move tcpdump to /system/xbin (instead of /system/bin),
and configure it to shed privileges by default (if running as root) after binding the socket needed to sniff with.
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk16
1 files changed, 9 insertions, 7 deletions
diff --git a/Android.mk b/Android.mk
index 0985b109..ad47230c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -119,20 +119,22 @@ LOCAL_SRC_FILES:=\
missing/strlcat.c\
missing/strlcpy.c
-LOCAL_CFLAGS:=-O2 -g
-LOCAL_CFLAGS+=-DHAVE_CONFIG_H -D_U_="__attribute__((unused))"
+LOCAL_CFLAGS := -O2 -g
+LOCAL_CFLAGS += -DHAVE_CONFIG_H -D_U_="__attribute__((unused))"
-LOCAL_C_INCLUDES+=\
+LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/missing\
external/openssl/include\
external/libpcap
-LOCAL_SHARED_LIBRARIES+=libssl
+LOCAL_SHARED_LIBRARIES += libssl
-LOCAL_STATIC_LIBRARIES+=libpcap
+LOCAL_STATIC_LIBRARIES += libpcap
-LOCAL_MODULE_TAGS:=tests
+LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
-LOCAL_MODULE:=tcpdump
+LOCAL_MODULE_TAGS := tests
+
+LOCAL_MODULE := tcpdump
include $(BUILD_EXECUTABLE)