aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-05-17 12:17:43 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-05-21 09:43:48 -0400
commite3e3aa63d746f9187d5733bef627343771eb4a9d (patch)
treea83f67ddb62f7f094962d8b6bba54d5a154e68e5 /Makefile
parent42ca985bef45edf18104d3f3aa41a1fae625ffaf (diff)
downloadkutter-e3e3aa63d746f9187d5733bef627343771eb4a9d.tar.gz
kutter-e3e3aa63d746f9187d5733bef627343771eb4a9d.tar.xz
kutter-e3e3aa63d746f9187d5733bef627343771eb4a9d.zip
build: Add gcc option -std=gnu11
Some older versions of gcc require this flag in order to compile the code correctly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1a7038d4..8bdb534d 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ dirs-y = src
cc-option=$(shell if test -z "`$(1) $(2) -S -o /dev/null -xc /dev/null 2>&1`" \
; then echo "$(2)"; else echo "$(3)"; fi ;)
-CFLAGS := -I$(OUT) -Isrc -I$(OUT)board-generic/ -O2 -MD -g \
+CFLAGS := -I$(OUT) -Isrc -I$(OUT)board-generic/ -std=gnu11 -O2 -MD -g \
-Wall -Wold-style-definition $(call cc-option,$(CC),-Wtype-limits,) \
-ffunction-sections -fdata-sections
CFLAGS += -flto -fwhole-program -fno-use-linker-plugin