[flac-dev] [PATCH] configure: only use -mstackrealign on mingw32/os2

2015-04-10 Thread Tristan Matthews
And only for i686.
---
 configure.ac | 9 +++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index eb9b0cc..8dd5b0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -399,11 +399,16 @@ 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
-- 
2.1.0

___
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev


[flac-dev] [PATCH] configure: only use -mstackrealign on mingw32/os2

2015-04-10 Thread Tristan Matthews
And only for i686.
---
 configure.ac | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index eb9b0cc..9751745 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
-- 
2.1.0

___
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev


Re: [flac-dev] [PATCH] configure: only use -mstackrealign on mingw32/os2

2015-04-10 Thread Dave Yeo
On 04/10/15 10:05 PM, Tristan Matthews wrote:
> And only for i686.

LGTM, thanks
Dave

___
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev


Re: [flac-dev] [PATCH] configure: only use -mstackrealign on mingw32/os2

2015-04-18 Thread Erik de Castro Lopo
Tristan Matthews wrote:

> And only for i686.

Applied. Thanks.

Erik
-- 
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev