[FFmpeg-devel] the build system breaks the make of "examples"
avcoder
ffmpeg
Tue Mar 31 18:12:39 CEST 2009
Dear :
On Tue, Mar 31, 2009 at 11:32 PM, Diego Biurrun <diego at biurrun.de> wrote:
> On Tue, Mar 31, 2009 at 11:27:47PM +0800, avcoder wrote:
>>
>> you should build FFmpeg as static version in order to reproduce the bug!
>
> I used your exact configure options, no way to reproduce your problem.
I use the following hack to fix this bug ( I do not think it is my own bug)
Index: common.mak
===================================================================
--- common.mak ??? 18274?
+++ common.mak ??????
@@ -83,7 +83,7 @@
define RULES
$(SUBDIR)%$(EXESUF): $(SUBDIR)%.o
- $(CC) $(FFLDFLAGS) -o $$@ $$^ $(SUBDIR)$(LIBNAME) $(FFEXTRALIBS)
+ $(CC) $(FFLDFLAGS) -o $$@ $$^ $(FFEXTRALIBS)
$(SUBDIR)%-test.o: $(SUBDIR)%.c
$(CC) $(CFLAGS) -DTEST -c -o $$@ $$^
Index: Makefile
===================================================================
--- Makefile ??? 29111?
+++ Makefile ??????
@@ -25,7 +25,7 @@
include $(SUBDIR)../subdir.mak
-$(SUBDIR)colorspace-test: $(SUBDIR)colorspace-test.o $(SUBDIR)$(LIBNAME)
+$(SUBDIR)colorspace-test$(EXESUF): $(SUBDIR)colorspace-test.o
$(SUBDIR)$(LIBNAME) $(FF_DEP_LIBS)
-$(SUBDIR)swscale-example: $(SUBDIR)swscale-example.o $(SUBDIR)$(LIBNAME)
-$(SUBDIR)swscale-example: EXTRALIBS += -lm
+$(SUBDIR)swscale-example$(EXESUF): $(SUBDIR)swscale-example.o
$(SUBDIR)$(LIBNAME) $(FF_DEP_LIBS)
+$(SUBDIR)swscale-example$(EXESUF): EXTRALIBS += -lm
More information about the ffmpeg-devel
mailing list