From 294bc864075d760be04e0105855537fc85ec47c8 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 12 May 2020 09:36:40 +0100 Subject: [PATCH] Workaround build issue with old 32bit mingw Sort of testing Signed-off-by: falkTX --- source/modules/juce_audio_basics/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/modules/juce_audio_basics/Makefile b/source/modules/juce_audio_basics/Makefile index a1e35c03a..5f550a978 100644 --- a/source/modules/juce_audio_basics/Makefile +++ b/source/modules/juce_audio_basics/Makefile @@ -12,6 +12,13 @@ include ../Makefile.mk BUILD_CXX_FLAGS += $(JUCE_AUDIO_BASICS_FLAGS) -I.. +# needed for older mingw, crashes on optimized float operations +ifeq ($(WIN32),true) +ifneq (,$(findstring i686,$(TARGET_MACHINE))) +BUILD_CXX_FLAGS += -mpreferred-stack-boundary=2 +endif +endif + # --------------------------------------------------------------------------------------------------------------------- ifeq ($(MACOS),true)