[flac-dev] [PATCH] configure: only use -mstackrealign for mingw32

Tristan Matthews tmatth at videolan.org
Fri Apr 10 07:14:47 PDT 2015


---
 configure.ac | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index eb9b0cc..4347c07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -399,9 +399,10 @@ 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])
+		if test "$host_os" = "mingw32" ; then
+			XIPH_ADD_CFLAGS([-mstackrealign])
+			fi
 		fi
-
 	fi
 
 XIPH_ADD_CFLAGS([-Wextra])
-- 
2.1.0



More information about the flac-dev mailing list