forked from Archive/PX4-Autopilot
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:
parent
35e00f0ba1
commit
672ba1a43b
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue