[vlc-devel] [PATCH] Configure: enable the stack-clashing protection
Jean-Baptiste Kempf
jb at videolan.org
Tue May 19 14:35:12 CEST 2020
This is a bit different than the stack-smashing protection and
should be available since gcc 8
---
configure.ac | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configure.ac b/configure.ac
index aa140c941d4..e747adbf4f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1237,6 +1237,8 @@ AS_IF([test "${enable_ssp}" != "no" -a "${enable_optimizations}" != "no"], [
VLC_SAVE_FLAGS
AX_APPEND_COMPILE_FLAGS([-fstack-protector-strong])
AX_APPEND_COMPILE_FLAGS([-fstack-protector-strong], [CXXFLAGS])
+ AX_APPEND_COMPILE_FLAGS([-fstack-clash-protection])
+ AX_APPEND_COMPILE_FLAGS([-fstack-clash-protection], [CXXFLAGS])
dnl Win32 requires linking to ssp for stack-protection
AS_IF([test "${SYS}" = "mingw32"], [
LDFLAGS="${LDFLAGS} -lssp"
--
2.26.2
More information about the vlc-devel
mailing list