It is better to put the “dialect” and runtime flags in the compiler variable, since it will use these flags for linking - not only the original compilation: CXX="clang++ -std=c++11 -stdlib=libc++"
Save CXXFLAGS for things like -W -Wall -O2 -march=xxx , etc.
source share