[FFmpeg-devel] [PATCH] define private libs properly in pkgconfig files

Anssi Hannula anssi.hannula
Mon May 5 23:08:51 CEST 2008


Hi!

Currently all the libraries ffmpeg links against are listed in "Libs:"
of *.pc files.

However, those libraries need to be specified only when a program is
linked statically against ffmpeg, not when ffmpeg is a shared library.
Therefore one should use "Libs.private:" instead of "Libs:".
Quote from pkg-config man page:
>        Libs.private:
>               This  line  should  list any private libraries in use.  Private libraries are libraries which are not exposed
>               through your library, but are needed in the case of static linking.

Patch attached.

-- 
Anssi Hannula
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pkgconfig-libs-private.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080506/fa262ab7/attachment.txt>



More information about the ffmpeg-devel mailing list