diff options
author | Ryan Prichard <rprichard@google.com> | 2019-10-11 16:19:33 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2019-10-18 16:37:18 -0700 |
commit | 91d6e73ca1c1ce30b46cd0e98e4bcf203320d5d2 (patch) | |
tree | 2af5220d8cbf417f897bbb1a976e81ffdd97a043 | |
parent | 94de52aa4c82456e23b9c17b8821ec9e7d09c494 (diff) | |
download | libunwind_llvm-ndk.tar.gz |
Build libunwind_llvm with -D_LIBUNWIND_USE_DLADDR=0ndk
This macro removes the usage of dladdr from libunwind_llvm, which allows
linking libunwind.a into a static executable without needing the stub
dladdr from libdl.a(libdl_static.o).
dladdr is used for unw_get_proc_name, which isn't needed for C++ exception
handling. unw_get_proc_name can already fail with UNW_EUNSPEC if the PC is
not in the .dynsym table (e.g. a static function).
Bug: http://b/141485154
Test: ./checkbuild.py && ./run_tests.py
Change-Id: I83d4f0b1b949bc76b277f50db80ea3ce77b88086
-rw-r--r-- | Android.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -51,7 +51,7 @@ include $(CLEAR_VARS) LOCAL_MODULE := libunwind LOCAL_SRC_FILES := $(libunwind_src_files) LOCAL_C_INCLUDES := $(libcxxabi_includes) -LOCAL_CFLAGS := -D__STDC_FORMAT_MACROS +LOCAL_CFLAGS := -D__STDC_FORMAT_MACROS -D_LIBUNWIND_USE_DLADDR=0 LOCAL_CPPFLAGS := -std=c++11 LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include |