summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-21 13:10:02 +0100
committerPetr Mladek <pmladek@suse.cz>2011-12-21 13:10:02 +0100
commit9c2ab9f4febec2b2c5fac25469f1d0cfedc6af5e (patch)
tree328f1152b8a6b5fee2a925d1106529c7fe2f0a82
parenta89006502622e22340b6ee5d24bea5331e1f8b31 (diff)
fix build with bleeding edge external boost and gcc
It seems that a recent boost and recent gcc causes a problem when boost::unordered_map is used as a baseclass for something. Asking gcc to use -std=c++0x mode makes gcc do the right thing. Signed-off-by: Petr Mladek <pmladek@suse.cz>
-rwxr-xr-xsolenv/gbuild/platform/unxgcc.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk
index d3b63edc0..3d6a08882 100755
--- a/solenv/gbuild/platform/unxgcc.mk
+++ b/solenv/gbuild/platform/unxgcc.mk
@@ -97,6 +97,12 @@ gb_CFLAGS += -fno-strict-aliasing
gb_CXXFLAGS += -fno-strict-aliasing
endif
+ifeq ($(HAVE_CXX0X),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 -Wno-deprecated-declarations
+endif
+
ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
gb_CFLAGS_WERROR := -Werror
gb_CXXFLAGS_WERROR := -Werror