Merge "base: dlopen/dlsym for liblog when SDK_VER <= 29" am: cdb6003784

Change-Id: Ieefc8e083dbbcc266102deccbe1a2f25c2084863
This commit is contained in:
Treehugger Robot 2020-03-18 16:23:47 +00:00 committed by Automerger Merge Worker
commit 09617a191d
2 changed files with 1 additions and 7 deletions

View file

@ -74,10 +74,6 @@ cc_defaults {
"test_utils.cpp",
],
static: {
cflags: ["-DNO_LIBLOG_DLSYM"],
},
cppflags: ["-Wexit-time-destructors"],
shared_libs: ["liblog"],
target: {

View file

@ -16,11 +16,9 @@
#include "liblog_symbols.h"
#if defined(__ANDROID__)
#if !defined(NO_LIBLOG_DLSYM) || defined(__ANDROID_APEX__)
#if defined(__ANDROID_SDK_VERSION__) && (__ANDROID_SDK_VERSION__ <= 29)
#define USE_DLSYM
#endif
#endif
#ifdef USE_DLSYM
#include <dlfcn.h>