Merge "Fix using libc++_static in dynamic binaries."

This commit is contained in:
Dan Albert
2015-05-12 22:00:32 +00:00
committed by Gerrit Code Review

View File

@@ -50,8 +50,14 @@ ifneq ($(filter $(my_cxx_stl),libc++ libc++_static),)
my_cflags += -D_USING_LIBCXX
my_c_includes += external/libcxx/include
# Note that the structure of this means that LOCAL_CXX_STL := libc++ will
# use the static libc++ for static executables.
ifeq ($(my_link_type),dynamic)
my_shared_libraries += libc++
ifeq ($(my_cxx_stl),libc++)
my_shared_libraries += libc++
else
my_static_libraries += libc++_static
endif
else
my_static_libraries += libc++_static
endif