Correct gmock/gtest expectations w.r.t. C++11/RTTI

Long story short, some of the tests were failing because they expected either
dynamic_cast or RTTI to be functional and it wasn't.

Move all common CXXFLAGS out to googletest.test.inc.mk and reference it from
googletest.test.mk and .../googletest/Makefile.inc
This commit is contained in:
Enji Cooper
2019-02-20 20:09:59 +00:00
parent 4783c2dda5
commit 833018816d
4 changed files with 18 additions and 5 deletions
+9
View File
@@ -0,0 +1,9 @@
# $FreeBSD$
GTESTS_CXXFLAGS+= -DGTESTS_HAS_RTTI=1
GTESTS_CXXFLAGS+= -DGTESTS_HAS_POSIX_RE=1
GTESTS_CXXFLAGS+= -DGTESTS_HAS_PTHREAD=1
GTESTS_CXXFLAGS+= -DGTESTS_HAS_STREAM_REDIRECTION=1
GTESTS_CXXFLAGS+= -DGTESTS_LANG_CXX11=1
GTESTS_CXXFLAGS+= -frtti
GTESTS_CXXFLAGS+= -std=c++11