From 0d33ff82c8b9436d83e6bf20a12de3d53c8ae591 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 17 Jun 2017 21:56:02 -0400 Subject: Fix optimization settings in HSM's build of libtfm. --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d8c9593..e058edd 100644 --- a/Makefile +++ b/Makefile @@ -88,13 +88,14 @@ SIZE=$(PREFIX)size # The Alpha is a development platform, so set GCC optimization to a # level suitable for debugging. Recent versions of GCC have a special -# optimization setting -Og for exactly this purpose, so we use it, along -# with the flag to enable gdb symbols. +# optimization setting -Og for exactly this purpose, so we use it, +# along with the flag to enable gdb symbols. Note that some libraries +# (in particular, libtfm) may need different optimization settings, +# which is why this needs to remain a separate makefile variable. # -# If you really want optimization without debugging support, try -O2 or -# (maybe) -O3. +# If you really want optimization without debugging support, try -O2 +# or -O3. -#STM32_CFLAGS_OPTIMIZATION ?= -O2 STM32_CFLAGS_OPTIMIZATION ?= -ggdb -Og # whew, that's a lot of cflags -- cgit v1.2.3