libbase uses liblog symbols via dlsym when it is built for APEX am: 5280b5c03e

Change-Id: I677891fbd2df36fe2d793a71564bfa5f71e7b1cc
This commit is contained in:
Automerger Merge Worker 2020-03-11 03:46:42 +00:00
commit 9bf1af3932

View file

@ -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> {