[vlc-devel] [PATCH] contrib: flac: use -mstackrealign on win32

Tristan Matthews tmatth at videolan.org
Fri Apr 10 06:40:32 CEST 2015


Fixes #14104
---
 contrib/src/flac/rules.mak | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/contrib/src/flac/rules.mak b/contrib/src/flac/rules.mak
index 7e5ad72..53cf8e0 100644
--- a/contrib/src/flac/rules.mak
+++ b/contrib/src/flac/rules.mak
@@ -42,10 +42,15 @@ FLACCONF += --disable-asm-optimizations
 endif
 endif
 
+FLAC_CFLAGS := $(CFLAGS)
+ifdef HAVE_WIN32
+FLAC_CFLAGS += -mstackrealign
+endif
+
 DEPS_flac = ogg $(DEPS_ogg)
 
 .flac: flac
-	cd $< && $(HOSTVARS) ./configure $(FLACCONF)
+	cd $< && $(HOSTVARS) CFLAGS="$(FLAC_CFLAGS)" ./configure $(FLACCONF)
 	cd $</include && $(MAKE) install
 	cd $</src && $(MAKE) -C share install && $(MAKE) -C libFLAC install
 	touch $@
-- 
2.1.4




More information about the vlc-devel mailing list