From: Erik de Castro Lopo Date: Fri, 8 Mar 2013 21:55:37 +0000 (+1100) Subject: configure.ac : Don't enable stack protector for mingw* host_os. X-Git-Tag: 1.3.0pre2~7 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fflac.git;a=commitdiff_plain;h=d5b03bcc36474ff1c9f2da2dcb5212e810208a6f configure.ac : Don't enable stack protector for mingw* host_os. --- diff --git a/configure.ac b/configure.ac index b99f402..24696fe 100644 --- a/configure.ac +++ b/configure.ac @@ -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")