Commit d5b03bcc authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

configure.ac : Don't enable stack protector for mingw* host_os.

parent ae663c36
......@@ -356,10 +356,6 @@ fi
XIPH_GCC_VERSION
XIPH_ADD_CFLAGS([-Wextra])
XIPH_ADD_CFLAGS([-D_FORTIFY_SOURCE=2])
XIPH_ADD_CFLAGS([-fstack-protector --param ssp-buffer-size=4])
if test x$ac_cv_c_compiler_gnu = xyes ; then
if test x$enable_gcc_werror = "xyes" ; then
CFLAGS="-Wall -Wextra -Werror $CFLAGS"
......@@ -374,6 +370,18 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then
fi
XIPH_ADD_CFLAGS([-Wextra])
XIPH_ADD_CFLAGS([-D_FORTIFY_SOURCE=2])
case "$host_os" in
mingw32msvc | mingw32)
# Disable for MinGW. Had reports of it not working.
;;
*)
XIPH_ADD_CFLAGS([-fstack-protector --param ssp-buffer-size=4])
;;
esac
#@@@
AM_CONDITIONAL(FLaC__HAS_AS__TEMPORARILY_DISABLED, test "yes" = "no")
AM_CONDITIONAL(FLaC__HAS_GAS__TEMPORARILY_DISABLED, test "yes" = "no")
......
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