[vlc-commits] configure: use stack-protector-strong in optimized mode
Jean-Baptiste Kempf
git at videolan.org
Mon Nov 13 12:04:22 CET 2017
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Nov 12 21:26:26 2017 +0100| [98b0cfed5ab0f31c0fe9ed23056ee8b26a35834d] | committer: Jean-Baptiste Kempf
configure: use stack-protector-strong in optimized mode
If it is available with your compiler (gcc 4.9)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=98b0cfed5ab0f31c0fe9ed23056ee8b26a35834d
---
configure.ac | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configure.ac b/configure.ac
index 153e7450a6..d2cf2ea75b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1121,6 +1121,9 @@ AH_BOTTOM([
])
AS_IF([test "${ac_cv_c_omit_frame_pointer}" = "no"], [VLC_RESTORE_FLAGS])
])
+
+ AX_APPEND_COMPILE_FLAGS([-fstack-protector-strong])
+ AX_APPEND_COMPILE_FLAGS([-fstack-protector-strong], [CXXFLAGS])
])
VLC_SAVE_FLAGS
More information about the vlc-commits
mailing list