Linux: support gcc-4.6 and c++0x

GCC 4.6 is too old for -std=c++11 but it supports -std=c++0x

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-03-11 20:29:11 -07:00
parent 35e00f0ba1
commit 672ba1a43b
2 changed files with 3 additions and 3 deletions

View File

@ -33,8 +33,8 @@
# Path and tool setup
#
export PX4_TARGET_OS = nuttx
#export PX4_TARGET_OS = linux
#export PX4_TARGET_OS = nuttx
export PX4_TARGET_OS = linux
#
# Some useful paths.

View File

@ -114,7 +114,7 @@ ARCHOPTIMIZATION = $(MAXOPTIMIZATION) \
# Language-specific flags
#
ARCHCFLAGS = -std=gnu99 -g
ARCHCXXFLAGS = -fno-exceptions -fno-rtti -std=c++11 -fno-threadsafe-statics -D__CUSTOM_FILE_IO__ -g
ARCHCXXFLAGS = -fno-exceptions -fno-rtti -std=c++0x -fno-threadsafe-statics -D__CUSTOM_FILE_IO__ -g
# Generic warnings
#