libbase uses liblog symbols via dlsym when it is built for APEX am: 5280b5c03e
Change-Id: I677891fbd2df36fe2d793a71564bfa5f71e7b1cc
This commit is contained in:
commit
9bf1af3932
1 changed files with 8 additions and 2 deletions
|
@ -16,14 +16,20 @@
|
|||
|
||||
#include "liblog_symbols.h"
|
||||
|
||||
#if defined(__ANDROID__) && !defined(NO_LIBLOG_DLSYM)
|
||||
#if defined(__ANDROID__)
|
||||
#if !defined(NO_LIBLOG_DLSYM) || defined(__ANDROID_APEX__)
|
||||
#define USE_DLSYM
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef USE_DLSYM
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
namespace android {
|
||||
namespace base {
|
||||
|
||||
#if defined(__ANDROID__) && !defined(NO_LIBLOG_DLSYM)
|
||||
#ifdef USE_DLSYM
|
||||
|
||||
const std::optional<LibLogFunctions>& GetLibLogFunctions() {
|
||||
static std::optional<LibLogFunctions> liblog_functions = []() -> std::optional<LibLogFunctions> {
|
||||
|
|
Loading…
Reference in a new issue