library.mak: Put -Umain back for tests
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 1 Jun 2016 14:22:36 +0000 (16:22 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 1 Jun 2016 14:32:08 +0000 (16:32 +0200)
Fixes build on mingw32 with SDL

reverts one line from 96d616052b3d39678e477fa10610ca688f46fff9

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
library.mak

index cc4b498..5bfa796 100644 (file)
@@ -21,6 +21,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): CFLAGS += -Umain
 
 $(SUBDIR)$(LIBNAME): $(OBJS)
        $(RM) $@