diff --git a/mk/board_avr.mk b/mk/board_avr.mk index 0e98d55752..28d390af3e 100644 --- a/mk/board_avr.mk +++ b/mk/board_avr.mk @@ -34,7 +34,7 @@ CPULDFLAGS= $($(TOOLCHAIN)_CPULDFLAGS) OPTFLAGS= $($(TOOLCHAIN)_OPTFLAGS) CXXFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(OPTFLAGS) -CXXFLAGS += $(WARNFLAGS) $(WARNFLAGSCXX) $(DEPFLAGS) $(CXXOPTS) +CXXFLAGS += -std=gnu++11 $(WARNFLAGS) $(WARNFLAGSCXX) $(DEPFLAGS) $(CXXOPTS) CFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(OPTFLAGS) CFLAGS += $(WARNFLAGS) $(DEPFLAGS) $(COPTS) ASFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(DEPFLAGS) diff --git a/mk/board_native.mk b/mk/board_native.mk index 7e366bf0b4..80abc863d0 100644 --- a/mk/board_native.mk +++ b/mk/board_native.mk @@ -29,7 +29,7 @@ CPULDFLAGS = -g OPTFLAGS ?= -O3 -g CXXFLAGS = -g $(CPUFLAGS) $(DEFINES) $(OPTFLAGS) -CXXFLAGS += $(WARNFLAGS) $(WARNFLAGSCXX) $(DEPFLAGS) $(CXXOPTS) +CXXFLAGS += -std=gnu++11 $(WARNFLAGS) $(WARNFLAGSCXX) $(DEPFLAGS) $(CXXOPTS) CFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(OPTFLAGS) CFLAGS += $(WARNFLAGS) $(DEPFLAGS) $(COPTS) ASFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(DEPFLAGS)