summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2014-09-16 20:51:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-18 09:48:07 +0000
commitf5496edf47684403ba7463249f76eab94f3da501 (patch)
tree28d2864ae0d92d9d6a88205c9275be4e56b6bc17 /solenv
parent83ef257f0a32f23d84dcdec77186d02650a5773d (diff)
Don't use gnu++03 alias of gnu++98 for ODK builds
gnu++03 is just an alias for gnu++98 and was introduced in gcc 4.8. This prevents older compilers from building the code. Change-Id: I7e09338f26376c08c476561cdcddde39c7e62b09 Reviewed-on: https://gerrit.libreoffice.org/11501 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/com_GCC_defs.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk
index 9ee1fd271c41..647aa8b6fadb 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -99,11 +99,10 @@ gb_CFLAGS_WERROR := $(if $(ENABLE_WERROR),-Werror)
# This is the default in non-C++11 mode
ifeq ($(COM_GCC_IS_CLANG),TRUE)
-# doesn't know gnu++03 and this seems to be the same anyway
gb_CXX03FLAGS := -std=gnu++98 -Werror=c++11-extensions -Wno-c++11-long-long \
-Wno-deprecated-declarations
else
-gb_CXX03FLAGS := -std=gnu++03 -pedantic-errors -Wno-long-long \
+gb_CXX03FLAGS := -std=gnu++98 -pedantic-errors -Wno-long-long \
-Wno-variadic-macros -Wno-non-virtual-dtor -Wno-deprecated-declarations
endif