build: override opt flags for Linux build

This commit is contained in:
Andrew Tridgell 2013-09-28 18:39:14 +10:00
parent f03315237a
commit d73c49bebc
2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ endif
CPUFLAGS = -D_GNU_SOURCE
CPULDFLAGS = -g
OPTFLAGS = -O0 -g
OPTFLAGS ?= -O0 -g
CXXFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(OPTFLAGS)
CXXFLAGS += $(WARNFLAGS) $(WARNFLAGSCXX) $(DEPFLAGS) $(CXXOPTS)

View File

@ -3,4 +3,5 @@ TOOLCHAIN = NATIVE
include $(MK_DIR)/find_tools.mk
# Linux build is just the same as SITL for now
OPTFLAGS = -O0
include $(MK_DIR)/board_avr_sitl.mk