1 2GTESTS_CXXFLAGS+= -DGTEST_HAS_POSIX_RE=1 3GTESTS_CXXFLAGS+= -DGTEST_HAS_PTHREAD=1 4GTESTS_CXXFLAGS+= -DGTEST_HAS_STREAM_REDIRECTION=1 5GTESTS_CXXFLAGS+= -frtti 6 7.include <bsd.compiler.mk> 8 9.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 100000 10# Required until googletest is upgraded to a more recent version (after 11# upstream commit efecb0bfa687cf87836494f5d62868485c00fb66). 12GTESTS_CXXFLAGS+= -Wno-deprecated-copy 13 14# Required until googletest is upgraded to a more recent version (after 15# upstream commit d44b137fd104dfffdcdea103f7de11b9eccc45c2). 16GTESTS_CXXFLAGS+= -Wno-signed-unsigned-wchar 17.endif 18 19# XXX: src.libnames.mk should handle adding this directory for libgtest's, 20# libgmock's, etc, headers. 21CXXFLAGS+= -I${DESTDIR}${INCLUDEDIR}/private 22 23CXXSTD?= c++14 24 25NO_WTHREAD_SAFETY= 26