Index: ffmpeg-0.4.9-pre1/libavformat/Makefile
===================================================================
--- ffmpeg-0.4.9-pre1.orig/libavformat/Makefile	2008-08-30 11:35:09.000000000 +0200
+++ ffmpeg-0.4.9-pre1/libavformat/Makefile	2008-08-30 11:35:34.000000000 +0200
@@ -94,7 +94,7 @@
 	$(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(VPATH)/../libavcodec/avcodec.dll
 	-lib /machine:i386 /def:$(@:.dll=.def)
 else
-	$(CC) $(SHFLAGS) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) -Wl,-soname -Wl,libavformat.so.0
+	$(CC) $(SHFLAGS) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(LDFLAGS) -Wl,-soname -Wl,libavformat.so.0
 endif
 
 depend: $(SRCS)