mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
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:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user