From: Michael Tremer Date: Sun, 28 Jan 2018 15:46:00 +0000 (+0000) Subject: CFLAGS: Enable -fstack-clash-protection on architectures that support it X-Git-Tag: 0.9.28~1290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e0b3e029842ed7ece91d718d5707fa97e37594b;p=pakfire.git CFLAGS: Enable -fstack-clash-protection on architectures that support it Signed-off-by: Michael Tremer --- diff --git a/macros/cflags.macro b/macros/cflags.macro index e6320eb9a..b56c8b969 100644 --- a/macros/cflags.macro +++ b/macros/cflags.macro @@ -3,8 +3,9 @@ GLOBAL_CFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Werror=format-security GLOBAL_CFLAGS += -fexceptions -fPIC -fstack-protector-strong -grecord-gcc-switches -CFLAGS_i686 = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -CFLAGS_x86_64 = -m64 -mtune=generic +CFLAGS_i686 = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fstack-clash-protection +CFLAGS_x86_64 = -m64 -mtune=generic -fstack-clash-protection +CFLAGS_aarch64 = -fstack-clash-protection CFLAGS_armv5tel = -march=armv5te -mfloat-abi=soft CFLAGS_armv7hl = -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -mthumb