[FFmpeg-user] pkg-config --static ?

Jan Ehrhardt phpdev at ehrhardt.nl
Mon Aug 5 00:00:13 CEST 2013


Roger Pack in gmane.comp.video.ffmpeg.user (Tue, 18 Sep 2012 17:18:57
-0600):
>Apparently nobody (including myself) really understand pkg-config.
>
>Here is an answer from fontconfig people:
>
>> I guess my only question mark here is "since I built fontconfig with
>> --disable-shared --enable-static" would you say that fontconfig is
>> still correct here?
>
>>AFAICT It's pkg-config's design no matter what the library has been built with.
>
>I'm really not sure how FFmpeg is supposed to "know" it's linking
>against a static library, and thus know to pass the "--static" flag to
>pkg-config.

To follow-up once again on this message: you can tell FFmpeg to use
--static for all libraries. Just put "pkg_config='pkg-config --static'"
at the beginning of your ./configure command-line.

See http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=5&t=4&start=10#p2173
and http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=5&t=4&start=20#p5338

Take a look at man pkg-config as well.

Jan



More information about the ffmpeg-user mailing list