From b67252c2e46745ce1f2899d0f80e6efca8d280f7 Mon Sep 17 00:00:00 2001 From: Zhang Xianyi Date: Wed, 17 Jul 2013 15:19:07 +0800 Subject: [PATCH] Ensure the correct stack alignment on Win32. --- Makefile.system | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.system b/Makefile.system index 642d627af..c0ef0b6a4 100644 --- a/Makefile.system +++ b/Makefile.system @@ -184,8 +184,15 @@ ifeq ($(GCCMINORVERSIONGTEQ7), 1) CCOMMON_OPT += -DMS_ABI endif endif +endif +# Ensure the correct stack alignment on Win32 +# http://permalink.gmane.org/gmane.comp.lib.openblas.general/97 +ifeq ($(ARCH), x86) +CCOMMON_OPT += -mincoming-stack-boundary=2 +FCOMMON_OPT += -mincoming-stack-boundary=2 endif + endif ifeq ($(OSNAME), Interix)