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
This commit is contained in:
parent
10ab2de085
commit
cb554de222
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241909
@ -53,7 +53,9 @@ cxxrt_${_S}:
|
|||||||
|
|
||||||
WARNS= 0
|
WARNS= 0
|
||||||
CFLAGS+= -I${HDRDIR} -I${LIBCXXRTDIR} -nostdlib -DLIBCXXRT
|
CFLAGS+= -I${HDRDIR} -I${LIBCXXRTDIR} -nostdlib -DLIBCXXRT
|
||||||
|
.if !defined(CXXFLAGS) || ${CXXFLAGS:M-std=*}" == ""
|
||||||
CXXFLAGS+= -std=c++0x
|
CXXFLAGS+= -std=c++0x
|
||||||
|
.endif
|
||||||
|
|
||||||
DPADD= ${LIBCXXRT}
|
DPADD= ${LIBCXXRT}
|
||||||
LDADD= -lcxxrt
|
LDADD= -lcxxrt
|
||||||
|
Loading…
Reference in New Issue
Block a user