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

Anssi Hannula anssi.hannula
Thu May 8 17:59:04 CEST 2008


j at v2v.cc wrote:
> On Thu, 2008-05-08 at 04:46 +0300, Anssi Hannula wrote:
> 
>> If you are linking statically, you have to use '--static' option of
>> pkg-config. Then all libraries are printed.
> 
> how can i do that with ?PKG_CHECK_MODULES?
> pkg-config does not seam to check or know if only static linking
> is possible. by default ffmpeg does not install shared libs.

Indeed, PKG_CHECK_MODULES does not know that. So I guess the way to make
it behave correctly is indeed to not make $name-uninstalled.pc use
Libs.private and only make $name.pc use Libs.private when the shared
library is created.

Thanks for noticing this.

Patch attached.

-- 
Anssi Hannula
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-pkgconfig-libs-without-sharedlibs.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080508/7b707223/attachment.txt>



More information about the ffmpeg-devel mailing list