[FFmpeg-devel] [PATCH] pthread detection on mingw + static pthread
Måns Rullgård
mans
Fri Apr 25 09:52:03 CEST 2008
Ramiro Polla <ramiro at lisha.ufsc.br> writes:
> Hi,
>
>>>> where needed -> mingw
>>> Why?
>> I haven't found out yet. It's not the usual stdcall vs. cdecl issue that
>> normally makes us use require2 instead of require. I'm still investigating.
>
> It's the "order of static libraries matters" issue.
>
> Currently it does:
> gcc -o tmp.exe tmp.o -lpthreadGC2 -lx264
>
> While it should instead do:
> gcc -o tmp.exe tmp.o -lx264 -lpthreadGC2
That can be fixed. Leave it with me.
> Or even better:
> gcc -o tmp.exe tmp.o -lpthreadGC2 -lx264 -lpthreadGC2
> ^^ FFmpeg ^^ ^^ x264 ^^
This obviously has nothing to do with x264.h detection, which someone
else claimed to be the problem. It is also not addressed any patch
I've seen (pretending for a moment that the problem actually exists).
> It only matters on check_func() though, and not check_func2().
Uh, those checks use the exact same link command.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list