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

Commit 7b351cad authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes from topics 'ndk-compiler-rt_extras', 'ndk-libc++-libdl'

* changes:
  Use libcompiler-rt_extras with NDK builds.
  Always link libdl with libc++ for the NDK.
parents c6507670 c28e4bcb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -216,7 +216,6 @@ ifdef LOCAL_SDK_VERSION
    ifneq (,$(filter r10 r11,$(LOCAL_NDK_VERSION)))
      ifeq (c++_static,$(LOCAL_NDK_STL_VARIANT))
        my_ndk_stl_static_lib := $(my_libcxx_libdir)/libc++_static.a
        my_ldlibs += -ldl
      else
        my_ndk_stl_shared_lib_fullpath := $(my_libcxx_libdir)/libc++_shared.so
      endif
@@ -225,7 +224,6 @@ ifdef LOCAL_SDK_VERSION
        my_ndk_stl_static_lib := \
          $(my_libcxx_libdir)/libc++_static.a \
          $(my_libcxx_libdir)/libc++abi.a
        my_ldlibs += -ldl
      else
        my_ndk_stl_shared_lib_fullpath := $(my_libcxx_libdir)/libc++_shared.so
      endif
@@ -236,6 +234,8 @@ ifdef LOCAL_SDK_VERSION
      endif
    endif

    my_ldlibs += -ldl

    my_ndk_stl_cppflags := -std=c++11
  else # LOCAL_NDK_STL_VARIANT is not c++_* either
  ifneq (,$(filter gnustl_%, $(LOCAL_NDK_STL_VARIANT)))
@@ -418,7 +418,7 @@ include $(BUILD_SYSTEM)/config_sanitizers.mk

ifneq ($(LOCAL_NO_LIBCOMPILER_RT),true)
# Add in libcompiler_rt for all regular device builds
ifeq (,$(LOCAL_SDK_VERSION)$(WITHOUT_LIBCOMPILER_RT))
ifeq (,$(WITHOUT_LIBCOMPILER_RT))
  my_static_libraries += $(COMPILER_RT_CONFIG_EXTRA_STATIC_LIBRARIES)
endif
endif