mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-20 06:20:20 +02:00
Use stdlib=libc++ when CONFIG_USE_LIBCXX is true for clang
This commit is contained in:
parent
aa63cf1d19
commit
db410a2ab2
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -45,6 +45,9 @@ ifeq ($(CONFIG_CXX_ALLOCATOR),true)
|
||||||
# make sure LTO is compatible in case CC and CXX don't match (such as clang and g++)
|
# make sure LTO is compatible in case CC and CXX don't match (such as clang and g++)
|
||||||
CXX := $(CC)
|
CXX := $(CC)
|
||||||
ifeq ($(CONFIG_USE_LIBCXX),true)
|
ifeq ($(CONFIG_USE_LIBCXX),true)
|
||||||
|
ifeq ($(CXX),clang)
|
||||||
|
CXXFLAGS += -stdlib=libc++
|
||||||
|
endif
|
||||||
LDLIBS += -lc++
|
LDLIBS += -lc++
|
||||||
else
|
else
|
||||||
LDLIBS += -lstdc++
|
LDLIBS += -lstdc++
|
||||||
|
|
Loading…
Add table
Reference in a new issue