1LOCAL_PATH:= $(call my-dir) 2 3# 4# static 5# 6 7include $(CLEAR_VARS) 8 9LOCAL_SRC_FILES:= \ 10 libthread_db.c 11 12LOCAL_MODULE:= libthread_db 13 14include $(BUILD_STATIC_LIBRARY) 15 16# 17# shared 18# 19 20include $(CLEAR_VARS) 21 22LOCAL_WHOLE_STATIC_LIBRARIES := libthread_db 23LOCAL_MODULE:=libthread_db 24LOCAL_SHARED_LIBRARIES := libdl 25 26# NOTE: Using --no-undefined results in a missing symbol that is defined inside 27# gdbserver and is resolved at runtime. Since there is no library containing 28# this symbol that we can link against, set LOCAL_ALLOW_UNDEFINED_SYMBOLS so 29# that --no-undefined is removed from the linker flags. 30LOCAL_ALLOW_UNDEFINED_SYMBOLS := true 31LOCAL_SYSTEM_SHARED_LIBRARIES := 32 33include $(BUILD_SHARED_LIBRARY) 34