diff options
author | Dan Albert <danalbert@google.com> | 2014-09-26 15:23:07 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-09-26 15:23:07 -0700 |
commit | a4ed64d4c3fa5ddb90d037d42294b5032d9b175a (patch) | |
tree | 6b28358ac5ca38f970d08b931ef39308c9231b47 | |
parent | aa66e8828048d8d6fd7e4bb9c5e341ed89614266 (diff) | |
download | bionic-a4ed64d4c3fa5ddb90d037d42294b5032d9b175a.zip bionic-a4ed64d4c3fa5ddb90d037d42294b5032d9b175a.tar.gz bionic-a4ed64d4c3fa5ddb90d037d42294b5032d9b175a.tar.bz2 |
Add a dummy libdl.a.
Change-Id: I4b30b8875f14352bae2948ab8cf544ae818795ab
-rw-r--r-- | libdl/Android.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libdl/Android.mk b/libdl/Android.mk index 448d1b7..c9fca0e 100644 --- a/libdl/Android.mk +++ b/libdl/Android.mk @@ -37,3 +37,15 @@ LOCAL_ALLOW_UNDEFINED_SYMBOLS := true LOCAL_SYSTEM_SHARED_LIBRARIES := include $(BUILD_SHARED_LIBRARY) + +# A dummy libdl.a. Need for static executables using the LLVM unwinder. Most +# functions default to failure, others use a sensible default (dl_iterate_phdr() +# returns 0, as would happen if the user iterated over every phdr). +include $(CLEAR_VARS) +LOCAL_SRC_FILES:= libdl.c +LOCAL_CFLAGS := -Wall -Wextra -Wunused -Werror +LOCAL_CXX_STL := none + +LOCAL_MODULE := libdl +LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk +include $(BUILD_STATIC_LIBRARY) |