Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac72606f authored by Jiyong Park's avatar Jiyong Park Committed by Gerrit Code Review
Browse files

Merge changes from topic "liblog"

* changes:
  Whole static link libasync_safe to libbacktrace.a
  libbase uses liblog symbols via dlsym when it is built for APEX
parents 73ae00bb cc26bbd2
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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> {
+3 −0
Original line number Diff line number Diff line
@@ -97,6 +97,9 @@ cc_library {
        },
        android: {
            static_libs: ["libasync_safe"],
            static: {
                whole_static_libs: ["libasync_safe"],
            },
        },
        vendor: {
            cflags: ["-DNO_LIBDEXFILE_SUPPORT"],