[vlc-commits] configure: use stack-protector-strong in optimized mode
Jean-Baptiste Kempf
git at videolan.org
Mon Nov 13 12:26:46 CET 2017
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Nov 12 21:26:26 2017 +0100| [4608791530b055b6920ab0c963af31fc0e3e0dd7] | 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=4608791530b055b6920ab0c963af31fc0e3e0dd7
---
configure.ac | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure.ac b/configure.ac
index 153e7450a6..d78db537c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1121,6 +1121,11 @@ 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])
+ dnl Win32 requires linking to ssp for stack-protection
+ AS_IF([test "${SYS}" = "mingw32"], [ LDFLAGS="${LDFLAGS} -lssp -ladvapi32" ])
])
VLC_SAVE_FLAGS
More information about the vlc-commits
mailing list