[FFmpeg-devel] [PATCH] library.mak: Workaround SDL redefining main and breaking fate tests on mingw

James Almer jamrial at gmail.com
Fri Jun 19 07:17:53 CEST 2015

On 18/06/15 8:06 PM, Michael Niedermayer wrote:
> -Umain does not work as SDL adds its defines afterwards

You could add -Umain to CFLAGS then, something like

diff --git a/library.mak b/library.mak
index 7c26024..29460b8 100644
--- a/library.mak
+++ b/library.mak
@@ -34,6 +34,7 @@ $(SUBDIR)x86/%.o: $(SUBDIR)x86/%$(YASMD).asm
+$(TESTOBJS) $(TESTOBJS:.o=.i): CFLAGS += -Umain
 	$(RM) $@

Would be somewhat less hacky, i think.

More information about the ffmpeg-devel mailing list