diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-10 18:22:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-11 15:50:50 +0200 |
commit | fcf015832466f4d902e8aeb1466309a1bc230475 (patch) | |
tree | 517808b6262230e30175d1d7a40ddbb822df1c7f /solenv/gbuild/platform/solaris.mk | |
parent | 2f1a28cf8fcfdfc369cf91936062c4f942ec03dd (diff) |
(Rudimentary) C++11 support is a hard requirement now
Change-Id: I43ed776d52336b822aa6152f0f2a29e39303bb75
Diffstat (limited to 'solenv/gbuild/platform/solaris.mk')
-rw-r--r-- | solenv/gbuild/platform/solaris.mk | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/solenv/gbuild/platform/solaris.mk b/solenv/gbuild/platform/solaris.mk index a781a6c88a48..94deeef76f41 100644 --- a/solenv/gbuild/platform/solaris.mk +++ b/solenv/gbuild/platform/solaris.mk @@ -62,6 +62,7 @@ gb_CXXFLAGS := \ -Wshadow \ -Woverloaded-virtual \ -Wno-non-virtual-dtor \ + -std=c++0x \ # enable debug STL ifeq ($(gb_ENABLE_DBGUTIL),$(true)) @@ -83,22 +84,16 @@ gb_CXXFLAGS += -fno-strict-aliasing endif endif -ifeq ($(HAVE_CXX11),TRUE) -#Currently, as well as for its own merits, c++11/c++0x mode allows use to use -#a template for SAL_N_ELEMENTS to detect at compiler time its misuse -gb_CXXFLAGS += -std=c++0x - #We have so many std::auto_ptr uses that we need to be able to disable #warnings for those so that -Werror continues to be useful, seeing as moving #to unique_ptr isn't an option when we must support different compilers - +# #When we are using 4.6.0 we can use gcc pragmas to selectively silence auto_ptr #warnings in isolation, but for <= 4.5.X we need to globally disable #deprecation ifeq ($(HAVE_GCC_PRAGMA_OPERATOR),) gb_CXXFLAGS += -Wno-deprecated-declarations endif -endif ifneq ($(strip $(SYSBASE)),) gb_CXXFLAGS += --sysroot=$(SYSBASE) |