From 243673c32acee63a7b0b23aeebac9b2ccfd80e7d Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 24 Aug 2018 04:43:12 -0400 Subject: [PATCH] Add notes on -stdlib=libc++ for MacOS --- GNUmakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 166354ca..695b9bb2 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -604,10 +604,14 @@ ifeq ($(IS_LINUX),1) endif # OpenMP 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) + CXX ?= c++ + # CXXFLAGS += -stdlib=libc++ AR = libtool ARFLAGS = -static -o - CXX ?= c++ endif # Add -errtags=yes to get the name for a warning suppression