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

Michael Niedermayer michaelni at gmx.at
Fri Jun 19 13:17:13 CEST 2015


On Fri, Jun 19, 2015 at 02:17:53AM -0300, James Almer wrote:
> 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
>  LIBOBJS := $(OBJS) $(SUBDIR)%.h.o $(TESTOBJS)
>  $(LIBOBJS) $(LIBOBJS:.o=.s) $(LIBOBJS:.o=.i): CPPFLAGS += -DHAVE_AV_CONFIG_H
>  $(TESTOBJS) $(TESTOBJS:.o=.i): CPPFLAGS += -DTEST
> +$(TESTOBJS) $(TESTOBJS:.o=.i): CFLAGS += -Umain

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

You can kill me, but you cannot change the truth.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150619/71329223/attachment.asc>


More information about the ffmpeg-devel mailing list