1 LOCAL_PATH:= $(call my-dir) 2 3 # 4 # static 5 # 6 7 include $(CLEAR_VARS) 8 9 LOCAL_SRC_FILES:= \ 10 libthread_db.c 11 12 LOCAL_MODULE:= libthread_db 13 14 include $(BUILD_STATIC_LIBRARY) 15 16 # 17 # shared 18 # 19 20 include $(CLEAR_VARS) 21 22 LOCAL_WHOLE_STATIC_LIBRARIES := libthread_db 23 LOCAL_MODULE:=libthread_db 24 LOCAL_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. 30 LOCAL_ALLOW_UNDEFINED_SYMBOLS := true 31 LOCAL_SYSTEM_SHARED_LIBRARIES := 32 33 include $(BUILD_SHARED_LIBRARY) 34