summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-04-09 00:10:01 -0700
committerKeith Packard <keithp@keithp.com>2012-04-09 00:10:01 -0700
commit0a198dfcd1b0defe194feaf301f4586e5573d6e9 (patch)
tree507a36de6bd536d9d3f90998fa27294a9277d06b
parent597c3df668ccf656d8c014f665c154a03166577c (diff)
altos: ARM -O0 flag appears to generate buggy code
Use -Os always, which is annoying... Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/megametrum-v0.1/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/megametrum-v0.1/Makefile b/src/megametrum-v0.1/Makefile
index 71f4adf7..297d136a 100644
--- a/src/megametrum-v0.1/Makefile
+++ b/src/megametrum-v0.1/Makefile
@@ -8,6 +8,7 @@ include ../stm/Makefile.defs
INC = \
ao.h \
ao_arch.h \
+ ao_arch_funcs.h \
ao_pins.h \
altitude.h \
ao_kalman.h \
@@ -41,7 +42,7 @@ PRODUCT=MegaMetrum-v0.1
PRODUCT_DEF=-DMEGAMETRUM
IDPRODUCT=0x000a
-CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -O0 -g
+CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -Os -g
PROG=megametrum-v0.1-$(VERSION).elf