[FFmpeg-devel] [PATCH] pthread detection on mingw + static pthread
Ramiro Polla
ramiro
Fri Apr 25 03:47:20 CEST 2008
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
Or even better:
gcc -o tmp.exe tmp.o -lpthreadGC2 -lx264 -lpthreadGC2
^^ FFmpeg ^^ ^^ x264 ^^
It only matters on check_func() though, and not check_func2().
Ramiro Polla
More information about the ffmpeg-devel
mailing list