Loading core/cxx_stl_setup.mk +9 −2 Original line number Original line Diff line number Diff line Loading @@ -10,6 +10,11 @@ ifeq ($(strip $(LOCAL_CXX_STL)),default) # Platform code. Select the appropriate STL. # Platform code. Select the appropriate STL. ifndef USE_MINGW ifndef USE_MINGW my_cxx_stl := libc++ my_cxx_stl := libc++ ifdef LOCAL_IS_HOST_MODULE ifneq (,$(BUILD_HOST_static)) my_cxx_stl := libc++_static endif endif else else # libc++ is not supported on mingw. # libc++ is not supported on mingw. my_cxx_stl := libstdc++ my_cxx_stl := libstdc++ Loading @@ -33,7 +38,8 @@ ifneq ($(filter $(my_cxx_stl),libc++ libc++_static),) ifdef LOCAL_IS_HOST_MODULE ifdef LOCAL_IS_HOST_MODULE my_cppflags += -nostdinc++ my_cppflags += -nostdinc++ my_ldflags += -nodefaultlibs my_ldflags += -nodefaultlibs my_ldlibs += -lc -lm -lpthread my_ldlibs += -lpthread -lm my_ldlibs += -Wl,--start-group -lgcc -lgcc_eh -lc -Wl,--end-group endif endif else ifneq ($(filter $(my_cxx_stl),stlport stlport_static),) else ifneq ($(filter $(my_cxx_stl),stlport stlport_static),) ifndef LOCAL_IS_HOST_MODULE ifndef LOCAL_IS_HOST_MODULE Loading Loading @@ -61,7 +67,8 @@ else ifeq ($(my_cxx_stl),libstdc++) else ifeq ($(my_cxx_stl),none) else ifeq ($(my_cxx_stl),none) ifdef LOCAL_IS_HOST_MODULE ifdef LOCAL_IS_HOST_MODULE my_cppflags += -nostdinc++ my_cppflags += -nostdinc++ my_ldflags += -nodefaultlibs -lc -lm my_ldflags += -nodefaultlibs my_ldlibs += -lm -Wl,--start-group -lgcc -lgcc_eh -lc -Wl,--end-group endif endif else else $(error $(my_cxx_stl) is not a supported STL.) $(error $(my_cxx_stl) is not a supported STL.) Loading Loading
core/cxx_stl_setup.mk +9 −2 Original line number Original line Diff line number Diff line Loading @@ -10,6 +10,11 @@ ifeq ($(strip $(LOCAL_CXX_STL)),default) # Platform code. Select the appropriate STL. # Platform code. Select the appropriate STL. ifndef USE_MINGW ifndef USE_MINGW my_cxx_stl := libc++ my_cxx_stl := libc++ ifdef LOCAL_IS_HOST_MODULE ifneq (,$(BUILD_HOST_static)) my_cxx_stl := libc++_static endif endif else else # libc++ is not supported on mingw. # libc++ is not supported on mingw. my_cxx_stl := libstdc++ my_cxx_stl := libstdc++ Loading @@ -33,7 +38,8 @@ ifneq ($(filter $(my_cxx_stl),libc++ libc++_static),) ifdef LOCAL_IS_HOST_MODULE ifdef LOCAL_IS_HOST_MODULE my_cppflags += -nostdinc++ my_cppflags += -nostdinc++ my_ldflags += -nodefaultlibs my_ldflags += -nodefaultlibs my_ldlibs += -lc -lm -lpthread my_ldlibs += -lpthread -lm my_ldlibs += -Wl,--start-group -lgcc -lgcc_eh -lc -Wl,--end-group endif endif else ifneq ($(filter $(my_cxx_stl),stlport stlport_static),) else ifneq ($(filter $(my_cxx_stl),stlport stlport_static),) ifndef LOCAL_IS_HOST_MODULE ifndef LOCAL_IS_HOST_MODULE Loading Loading @@ -61,7 +67,8 @@ else ifeq ($(my_cxx_stl),libstdc++) else ifeq ($(my_cxx_stl),none) else ifeq ($(my_cxx_stl),none) ifdef LOCAL_IS_HOST_MODULE ifdef LOCAL_IS_HOST_MODULE my_cppflags += -nostdinc++ my_cppflags += -nostdinc++ my_ldflags += -nodefaultlibs -lc -lm my_ldflags += -nodefaultlibs my_ldlibs += -lm -Wl,--start-group -lgcc -lgcc_eh -lc -Wl,--end-group endif endif else else $(error $(my_cxx_stl) is not a supported STL.) $(error $(my_cxx_stl) is not a supported STL.) Loading