Add notes on -stdlib=libc++ for MacOS

pull/710/head
Jeffrey Walton 2018-08-24 04:43:12 -04:00
parent afbd3e60f6
commit 243673c32a
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 5 additions and 1 deletions

View File

@ -604,10 +604,14 @@ ifeq ($(IS_LINUX),1)
endif # OpenMP endif # OpenMP
endif # IS_LINUX endif # IS_LINUX
# libc++ is LLVM's standard C++ library. If we add libc++
# here then all user programs must use it too. The open
# question is, which choice is easier on users?
ifneq ($(IS_DARWIN),0) ifneq ($(IS_DARWIN),0)
CXX ?= c++
# CXXFLAGS += -stdlib=libc++
AR = libtool AR = libtool
ARFLAGS = -static -o ARFLAGS = -static -o
CXX ?= c++
endif endif
# Add -errtags=yes to get the name for a warning suppression # Add -errtags=yes to get the name for a warning suppression