Commit 46087915 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

configure: use stack-protector-strong in optimized mode

If it is available with your compiler (gcc 4.9)
parent e8907f2e
......@@ -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], [CXXFLAGS])
dnl Win32 requires linking to ssp for stack-protection
AS_IF([test "${SYS}" = "mingw32"], [ LDFLAGS="${LDFLAGS} -lssp -ladvapi32" ])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment