summaryrefslogtreecommitdiffstats
path: root/libthread_db/Android.mk
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:28:35 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:28:35 -0800
commit1dc9e472e19acfe6dc7f41e429236e7eef7ceda1 (patch)
tree3be0c520fae17689bbf5584e1136fb820caef26f /libthread_db/Android.mk
parent1767f908af327fa388b1c66883760ad851267013 (diff)
downloadbionic-1dc9e472e19acfe6dc7f41e429236e7eef7ceda1.zip
bionic-1dc9e472e19acfe6dc7f41e429236e7eef7ceda1.tar.gz
bionic-1dc9e472e19acfe6dc7f41e429236e7eef7ceda1.tar.bz2
auto import from //depot/cupcake/@135843
Diffstat (limited to 'libthread_db/Android.mk')
-rw-r--r--libthread_db/Android.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/libthread_db/Android.mk b/libthread_db/Android.mk
new file mode 100644
index 0000000..3091bbc
--- /dev/null
+++ b/libthread_db/Android.mk
@@ -0,0 +1,33 @@
+LOCAL_PATH:= $(call my-dir)
+
+#
+# static
+#
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES:= \
+ libthread_db.c
+
+LOCAL_MODULE:= libthread_db
+
+include $(BUILD_STATIC_LIBRARY)
+
+#
+# shared
+#
+
+include $(CLEAR_VARS)
+
+LOCAL_WHOLE_STATIC_LIBRARIES := libthread_db
+LOCAL_MODULE:=libthread_db
+LOCAL_SHARED_LIBRARIES := libdl
+
+# NOTE: Using --no-undefined results in a missing symbol that is defined inside
+# gdbserver and is resolved at runtime. Since there is no library containing
+# this symbol that we can link against, set LOCAL_ALLOW_UNDEFINED_SYMBOLS so
+# that --no-undefined is removed from the linker flags.
+LOCAL_ALLOW_UNDEFINED_SYMBOLS := true
+LOCAL_SYSTEM_SHARED_LIBRARIES :=
+
+include $(BUILD_SHARED_LIBRARY)