Merge changes from topic "liblog" into rvc-dev

* changes:
  Whole static link libasync_safe to libbacktrace.a
  libbase uses liblog symbols via dlsym when it is built for APEX
This commit is contained in:
Jiyong Park 2020-03-11 03:25:29 +00:00 committed by Android (Google) Code Review
commit 846d14799b
2 changed files with 11 additions and 2 deletions

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

View file

@ -89,6 +89,9 @@ cc_library {
},
android: {
static_libs: ["libasync_safe"],
static: {
whole_static_libs: ["libasync_safe"],
},
},
vendor: {
cflags: ["-DNO_LIBDEXFILE_SUPPORT"],