Merge "Use -nostdlib++ instead of -nodefaultlibs"
This commit is contained in:
commit
a63ce3af4c
1 changed files with 2 additions and 10 deletions
|
@ -33,12 +33,6 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Yes, this is actually what the clang driver does.
|
|
||||||
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
|
|
||||||
|
|
||||||
my_link_type := dynamic
|
my_link_type := dynamic
|
||||||
ifdef LOCAL_IS_HOST_MODULE
|
ifdef LOCAL_IS_HOST_MODULE
|
||||||
ifneq (,$(BUILD_HOST_static))
|
ifneq (,$(BUILD_HOST_static))
|
||||||
|
@ -79,8 +73,7 @@ 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 += -nostdlib++
|
||||||
my_cxx_ldlibs += $($($(my_prefix)OS)_$(my_link_type)_gcclibs)
|
|
||||||
else
|
else
|
||||||
my_static_libraries += libc++demangle
|
my_static_libraries += libc++demangle
|
||||||
ifeq (arm,$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH))
|
ifeq (arm,$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH))
|
||||||
|
@ -99,8 +92,7 @@ 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
|
my_ldflags += -nostdlib++
|
||||||
my_cxx_ldlibs += $($($(my_prefix)OS)_$(my_link_type)_gcclibs)
|
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
$(error $(LOCAL_PATH): $(LOCAL_MODULE): $(my_cxx_stl) is not a supported STL.)
|
$(error $(LOCAL_PATH): $(LOCAL_MODULE): $(my_cxx_stl) is not a supported STL.)
|
||||||
|
|
Loading…
Reference in a new issue