[FFmpeg-devel] [PATCH] configure: libvmaf requires pthreads

Nicolas George george at nsup.org
Fri Nov 13 16:40:28 EET 2020


James Almer (12020-11-13):
> This results in a libavfilter binary that links to libvmaf for no reason,
> potentially bloating it if it was linked statically.

That is not how static linking works. Static linking takes in the
library exactly the object files required by the binary and other
object files, nothing more. We could have -lqt -lwebkit2gtk on the link
command, the linker would just observe that nothing in them is needed
and ignore them.

By the way, if the objections I got against merging the libraries (I
don't remember exactly from whom) were based on this kind of
misconception, it would be a good idea to revise them.

On the other hand, it makes a difference with dynamic linking: the
binary would be unable to run without the shared library present.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201113/44cc1d14/attachment.sig>


More information about the ffmpeg-devel mailing list