configure: Only use -mstackrealign on i686 for mingw32/os2

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
This commit is contained in:
Tristan Matthews 2015-04-11 01:05:30 -04:00 committed by Erik de Castro Lopo
parent 1ed65e5600
commit a84587061c

View File

@ -399,11 +399,17 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then
if test "x$asm_optimisation$sse_os" = "xyesyes" ; then
XIPH_ADD_CFLAGS([-msse2])
XIPH_ADD_CFLAGS([-mstackrealign])
fi
fi
case "$host_os" in
"mingw32"|"os2")
if test "$host_cpu" = "i686"; then
XIPH_ADD_CFLAGS([-mstackrealign])
fi
esac
XIPH_ADD_CFLAGS([-Wextra])
if test x$enable_werror = "xyes" ; then