blob: f6c671089eaef1f8fe3fe385345abf634fd55d04 [file] [log] [blame]
Stewart Smith8b90e5b2016-11-03 13:43:24 +11001From bc7b8b21549752274b162c64dbce3c81d20f2cab Mon Sep 17 00:00:00 2001
2From: Stewart Smith <stewart@linux.vnet.ibm.com>
3Date: Thu, 25 Aug 2016 20:22:30 +1000
4Subject: [PATCH 03/10] Default to std=gnu++03
5
6Seeing as no C++ dialect was previously selected, GCC < 6 defaulted
7to GNU++98 as the standard C++ mode. However... it seems that C++03
8is a better match for HostBoot code (confirmed by Patrick Williams
9in https://github.com/open-power/hostboot/pull/62#discussion_r76830612 )
10
11Change-Id: I6661b5b61319c85c2a90926beb6e2662e96dcf06
12Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
13---
14 src/build/mkrules/cflags.env.mk | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/src/build/mkrules/cflags.env.mk b/src/build/mkrules/cflags.env.mk
18index c805999..0bae0ec 100644
19--- a/src/build/mkrules/cflags.env.mk
20+++ b/src/build/mkrules/cflags.env.mk
21@@ -41,7 +41,7 @@ CFLAGS += $(COMMONFLAGS) -mcpu=power7 -nostdinc -g -mno-vsx -mno-altivec\
22 -ffunction-sections -fdata-sections -ffreestanding -mbig-endian
23 ASMFLAGS += $(COMMONFLAGS) -mcpu=power7 -mbig-endian
24 CXXFLAGS += $(CFLAGS) -nostdinc++ -fno-rtti -fno-exceptions -Wall \
25- -fuse-cxa-atexit
26+ -fuse-cxa-atexit -std=gnu++03
27 LDFLAGS += --nostdlib --sort-common -EB $(COMMONFLAGS)
28
29 INCFLAGS = $(addprefix -I, $(INCDIR) )
30--
312.7.4
32