diff options
author | dim <dim@FreeBSD.org> | 2012-10-22 19:44:17 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-10-22 19:44:17 +0000 |
commit | aef46581d91a912fc587677321f83f81ce6df527 (patch) | |
tree | 11d365790336f9586d9f940b0031bd9f5cdf6404 /lib/libc++ | |
parent | e377b20c9958d604796e9752dfd8556cdad9f300 (diff) | |
download | FreeBSD-src-aef46581d91a912fc587677321f83f81ce6df527.zip FreeBSD-src-aef46581d91a912fc587677321f83f81ce6df527.tar.gz |
Allow building libc++ with any custom -std=xxx flag. Note that using
-std=gnu++98 will give a lot of warnings with clang, so please use
-std=c++0x or higher, or use NO_WERROR.
MFC after: 1 week
Diffstat (limited to 'lib/libc++')
-rw-r--r-- | lib/libc++/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc++/Makefile b/lib/libc++/Makefile index 6e95823..26877ee 100644 --- a/lib/libc++/Makefile +++ b/lib/libc++/Makefile @@ -53,7 +53,9 @@ cxxrt_${_S}: WARNS= 0 CFLAGS+= -I${HDRDIR} -I${LIBCXXRTDIR} -nostdlib -DLIBCXXRT +.if !defined(CXXFLAGS) || ${CXXFLAGS:M-std=*}" == "" CXXFLAGS+= -std=c++0x +.endif DPADD= ${LIBCXXRT} LDADD= -lcxxrt |