From a2c34a08bfbd8f42c31cdc031b82f3b67a7c4912 Mon Sep 17 00:00:00 2001 From: tosiara Date: Wed, 12 Jun 2019 10:44:57 +0300 Subject: [PATCH] Fixed Makefile to compile on Ubuntu 16 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 332ef05..d5fa431 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ ifeq ($(DEBUG),DEBUG_ENABLE_SEMIHOST) OBJS += semihosting.o endif else -CFLAGS += -O3 +CFLAGS += -O3 -std=gnu99 endif CFLAGS += -fno-common -ffunction-sections -fdata-sections -funit-at-a-time @@ -113,7 +113,7 @@ $(DMP): $(ELF) $(LIBOPENCM3): git submodule init git submodule update --remote - CFLAGS="$(CFLAGS)" PREFIX="$(CROSS:-=)" make -C libopencm3 $(OPENCM3_MK) V=1 + CFLAGS="$(CFLAGS)" PREFIX="$(CROSS)" make -C libopencm3 $(OPENCM3_MK) V=1 .PHONY: clean distclean flash reboot size