From 77743e5a36cdda57bebd163e4b7fec72a22eb865 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 19 Jul 2019 11:15:49 -0400 Subject: [PATCH] use -fstack-clash-protection for completeness This is a no-op for the current code and will likely remain that way so there's no benefit but also no performance cost. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9180512..8589bc5 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ $(shell $(CC) -E $1 - /dev/null 2>&1 && echo $1 || echo $2) endef CPPFLAGS := -D_GNU_SOURCE -SHARED_FLAGS := -O3 -flto -fPIC -fvisibility=hidden $(call safe_flag,-fno-plt) -pipe -Wall -Wextra $(call safe_flag,-Wcast-align=strict) -Wcast-qual -Wwrite-strings +SHARED_FLAGS := -O3 -flto -fPIC -fvisibility=hidden $(call safe_flag,-fno-plt) $(call safe_flag,-fstack-clash-protection) -pipe -Wall -Wextra $(call safe_flag,-Wcast-align=strict) -Wcast-qual -Wwrite-strings ifeq ($(CONFIG_NATIVE),true) SHARED_FLAGS += -march=native