Add compiler:gcc-c++11-lib to instrument gcc linking with libc++ on system where default stl is libc++

This commit is contained in:
Baptiste Daroussin 2014-04-08 15:16:39 +00:00
parent f392fc8295
commit e149a86133
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350623

View file

@ -8,6 +8,7 @@
#
# c++0x: The port needs a compiler understanding C++0X
# c++11-lang: The port needs a compiler understanding C++11
# gcc-c++11-lib:The port needs g++ compiler with a C++11 library
# c++11-lib: The port needs a compiler understanding C++11 and with a C++11 ready standard library
# c11: The port needs a compiler understanding C11
# openmp: The port needs a compiler understanding openmp
@ -33,9 +34,11 @@ _INCLUDE_USES_COMPILER_MK= yes
compiler_ARGS= env
.endif
VALID_ARGS= c++11-lib c++11-lang c11 features openmp env nestedfct c++0x
VALID_ARGS= c++11-lib c++11-lang c11 features openmp env nestedfct c++0x gcc-c++11-lib
.if ${compiler_ARGS} == c++11-lib
.if ${compiler_ARGS} == gcc-c++11-lib
_COMPILER_ARGS+= features gcc-c++11-lib
.elif ${compiler_ARGS} == c++11-lib
_COMPILER_ARGS+= features c++11-lib
.elif ${compiler_ARGS} == c++0x
_COMPILER_ARGS+= features c++0x
@ -211,4 +214,13 @@ LDFLAGS+= -B${LOCALBASE}/bin
.endif
.endif
.if ${_COMPILER_ARGS:Mgcc-c++11-lib}
USE_GCC= yes
.if ${COMPILER_FEATURES:Mlibc++}
LDFLAGS+= -L${LOCALBASE}/lib/c++
CXXFLAGS+= -nostdinc++ -isystem ${LOCALBASE}/include/c++/v1
BUILD_DEPENDS+= ${LOCALBASE}/lib/c++/libstdc++.so:${PORTSDIR}/devel/libc++
.endif
.endif
.endif