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

Anssi Hannula anssi.hannula
Tue May 6 07:27:58 CEST 2008


Diego Biurrun wrote:
> On Tue, May 06, 2008 at 12:08:51AM +0300, Anssi Hannula wrote:
>> 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.
> 
> This was too confusing.  I have rewritten the two pkg-config generation
> commands into one simpler one.  Please update your patch, it should be
> far less intrusive now.

Updated, tested and 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/3a76f4ff/attachment.asc>



More information about the ffmpeg-devel mailing list