[PATCH][Ffmpeg-devel] Compilation Issue

Alexander Strasser eclipse7
Mon Sep 26 20:55:41 CEST 2005


Hi,

Michel Bardiaux wrote:
> Alexander Strasser wrote:
[...]
> >  I tried to work out a solution today. The attached patch is what
> >I have so far, it may not be the best solution but i think it is 
> >better than before. Please test (on all platforms).
> >
> >[...]
> Sorry, the patch is rejected when applied to CVS as of 2005-09-26 
> 10:13GMT. Please redo the diff against a current CVS. TIA.

  Oh, sorry. Here is an updated patch.

  Alex (beastd)
-------------- next part --------------
Index: libavcodec/Makefile
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/Makefile,v
retrieving revision 1.202
diff -u -r1.202 Makefile
--- libavcodec/Makefile	26 Sep 2005 10:05:13 -0000	1.202
+++ libavcodec/Makefile	26 Sep 2005 18:37:34 -0000
@@ -409,7 +409,7 @@
 	$(MAKE) -C libpostproc
 endif
 ifeq ($(CONFIG_WIN32),yes)
-	$(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
+	$(CC) $(SHFLAGS) -Wl,--enable-runtime-pseudo-reloc,--output-def,$(@:.dll=.def),--out-implib,$(LIB:.a=.dll.a) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
 	-lib /machine:i386 /def:$(@:.dll=.def)
 else
 	$(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
@@ -432,7 +432,9 @@
 dep:	depend
 
 clean: $(CLEANAMR)
-	rm -f *.o *.d *~ .depend $(LIB) $(SLIBNAME) *$(SLIBSUF) i386/*.o i386/*~ \
+	rm -f *.o *.d *~ .depend $(LIB) $(SLIBNAME) *$(SLIBSUF) \
+	   *.lib *.def *.dll.a *.exp \
+	   i386/*.o i386/*~ \
 	   armv4l/*.o armv4l/*~ \
 	   mlib/*.o mlib/*~ \
 	   alpha/*.o alpha/*~ \
Index: libavformat/Makefile
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/Makefile,v
retrieving revision 1.100
diff -u -r1.100 Makefile
--- libavformat/Makefile	26 Sep 2005 10:05:13 -0000	1.100
+++ libavformat/Makefile	26 Sep 2005 18:37:34 -0000
@@ -102,7 +102,7 @@
 
 $(SLIBNAME): $(OBJS)
 ifeq ($(CONFIG_WIN32),yes)
-	$(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(PPOBJS) $(AVCLIBS) $(EXTRALIBS)
+	$(CC) $(SHFLAGS) -Wl,--enable-runtime-pseudo-reloc,--output-def,$(@:.dll=.def),--out-implib,$(LIB:.a=.dll.a) -o $@ $(OBJS) $(PPOBJS) $(AVCLIBS) $(EXTRALIBS)
 	-lib /machine:i386 /def:$(@:.dll=.def)
 else
 	$(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(PPOBJS) $(AVCLIBS) $(EXTRALIBS)
@@ -145,7 +145,8 @@
 	g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< 
 
 distclean clean: 
-	rm -f *.o *.d .depend *~ *.a *$(SLIBSUF) $(LIB)
+	rm -f *.o *.d .depend *~ *.a *$(SLIBSUF) $(LIB) \
+	      *.lib *.def *.dll.a *.exp
 
 #
 # include dependency files if they exist
Index: libavutil/Makefile
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavutil/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- libavutil/Makefile	26 Sep 2005 10:05:13 -0000	1.3
+++ libavutil/Makefile	26 Sep 2005 18:37:34 -0000
@@ -37,7 +37,7 @@
 
 $(SLIBNAME): $(OBJS)
 ifeq ($(CONFIG_WIN32),yes)
-	$(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
+	$(CC) $(SHFLAGS) -Wl,--enable-runtime-pseudo-reloc,--output-def,$(@:.dll=.def),--out-implib,$(LIB:.a=.dll.a) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
 	-lib /machine:i386 /def:$(@:.dll=.def)
 else
 	$(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
@@ -52,7 +52,8 @@
 dep:	depend
 
 clean:
-	rm -f *.o *.d *~ .depend $(LIB) $(SLIBNAME) *$(SLIBSUF)
+	rm -f *.o *.d *~ .depend $(LIB) $(SLIBNAME) *$(SLIBSUF) \
+	      *.lib *.def *.dll.a *.exp
 
 distclean: clean
 	rm -f Makefile.bak .depend



More information about the ffmpeg-devel mailing list