1From 37e8a6a7e5875e20a8de07fbfbb69912f1964f7d Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Mon, 28 Oct 2019 09:47:49 +0100 4Subject: [PATCH] Makefile: allow the user to disable stack protector 5 6Allow the user to disable stack-protector by overriding CFLAGS as it is 7not supported by all toolchains. 8 9Fixes: 10 - http://autobuild.buildroot.net/results/cba1ae830c7a4d1740098fe67aec59b4dc2f9a03 11 12Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 13[Upstream status: https://github.com/smuellerDD/jitterentropy-library/pull/12] 14--- 15 Makefile | 4 ++-- 16 1 file changed, 2 insertions(+), 2 deletions(-) 17 18diff --git a/Makefile b/Makefile 19index 41bc4f7..b0f20e2 100644 20--- a/Makefile 21+++ b/Makefile 22@@ -1,9 +1,9 @@ 23 # Compile Noise Source as user space application 24 25 CC ?= gcc 26-CFLAGS +=-Wextra -Wall -pedantic -fPIC -O0 27 #Hardening 28-CFLAGS +=-fstack-protector-all -fwrapv --param ssp-buffer-size=4 29+CFLAGS ?=-fstack-protector-all --param ssp-buffer-size=4 30+CFLAGS +=-Wextra -Wall -pedantic -fPIC -O0 -fwrapv 31 LDFLAGS +=-Wl,-z,relro,-z,now 32 33 # Change as necessary 34-- 352.23.0 36 37