[vlc-devel] [PATCH 1/3] configure: use stack-protector-strong in optimized mode

Jean-Baptiste Kempf jb at videolan.org
Sun Nov 12 23:59:46 CET 2017


If it is available with your compiler (gcc 4.9)

-- 
Maybe not only when optimized mode is activated?
Very very likely to break MingW

---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index 153e7450a6..75ac6c6144 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1121,6 +1121,8 @@ AH_BOTTOM([
     ])
     AS_IF([test "${ac_cv_c_omit_frame_pointer}" = "no"], [VLC_RESTORE_FLAGS])
   ])
+
+  AX_APPEND_COMPILE_FLAGS([-fstack-protector-strong], [CFLAGS])
 ])
 
 VLC_SAVE_FLAGS
-- 
2.15.0.448.gf294e3d99a



More information about the vlc-devel mailing list