* commit '91a0082fbc69ab77931ec58ea5a5fbf58331d8a5': Fix `LOCAL_CXX_STL := none` for Windows.
This commit is contained in:
commit
81abed9134
1 changed files with 10 additions and 6 deletions
|
@ -47,10 +47,14 @@ else
|
|||
endif
|
||||
|
||||
# Yes, this is actually what the clang driver does.
|
||||
HOST_linux_dynamic_gcclibs := -lgcc_s -lgcc -lc -lgcc_s -lgcc
|
||||
HOST_linux_static_gcclibs := -Wl,--start-group -lgcc -lgcc_eh -lc -Wl,--end-group
|
||||
HOST_darwin_dynamic_gcclibs := -lc -lSystem
|
||||
HOST_darwin_static_gcclibs := NO_STATIC_HOST_BINARIES_ON_DARWIN
|
||||
linux_dynamic_gcclibs := -lgcc_s -lgcc -lc -lgcc_s -lgcc
|
||||
linux_static_gcclibs := -Wl,--start-group -lgcc -lgcc_eh -lc -Wl,--end-group
|
||||
darwin_dynamic_gcclibs := -lc -lSystem
|
||||
darwin_static_gcclibs := NO_STATIC_HOST_BINARIES_ON_DARWIN
|
||||
windows_dynamic_gcclibs := \
|
||||
-lmsvcr110 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -ladvapi32 \
|
||||
-lshell32 -luser32 -lkernel32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt
|
||||
windows_static_gcclibs := NO_STATIC_HOST_BINARIES_ON_WINDOWS
|
||||
|
||||
my_link_type := dynamic
|
||||
ifdef LOCAL_IS_HOST_MODULE
|
||||
|
@ -86,7 +90,7 @@ ifneq ($(filter $(my_cxx_stl),libc++ libc++_static),)
|
|||
my_cppflags += -nostdinc++
|
||||
my_ldflags += -nodefaultlibs
|
||||
my_ldlibs += -lpthread -lm
|
||||
my_ldlibs += $($(my_prefix)$(HOST_OS)_$(my_link_type)_gcclibs)
|
||||
my_ldlibs += $($($(my_prefix)OS)_$(my_link_type)_gcclibs)
|
||||
else
|
||||
ifeq (arm,$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH))
|
||||
my_static_libraries += libunwind_llvm
|
||||
|
@ -116,7 +120,7 @@ else ifeq ($(my_cxx_stl),none)
|
|||
ifdef LOCAL_IS_HOST_MODULE
|
||||
my_cppflags += -nostdinc++
|
||||
my_ldflags += -nodefaultlibs
|
||||
my_ldlibs += $($(my_prefix)$(HOST_OS)_$(my_link_type)_gcclibs)
|
||||
my_ldlibs += $($($(my_prefix)OS)_$(my_link_type)_gcclibs)
|
||||
endif
|
||||
else
|
||||
$(error $(LOCAL_PATH): $(LOCAL_MODULE): $(my_cxx_stl) is not a supported STL.)
|
||||
|
|
Loading…
Reference in a new issue