[FFmpeg-devel] [PATCH] set FONTCONFIG_PATH relative to ffmpeg binary, if it is a static build

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Feb 17 11:33:29 CET 2014

On 17.02.2014, at 11:26, Nicolas George <george at nsup.org> wrote:
> Le nonidi 29 pluviôse, an CCXXII, Helmut K. C. Tessarek a écrit :
> This looks wrong: CONFIG_STATIC tells you that the FFmpeg libraries will be
> built static; they may also be built shared: CONFIG_STATIC and CONFIG_SHARED
> are not exclusive.
> It does not tell you that fontconfig will be statically linked.

More critically whether or not it is statically linked does not tell you anything about whether it will be installed in the system ffmpeg is run on.
DLLs/so files can just be distributed along with binaries, and that will actually reduce binary size of you distribute multiple ff* programs.
Overall I am not at all convinced this makes more sense than a wrapper script that sets the environment variable.
But if it's wanted, IMHO it should be e.g. an --enable-portable option that then also looks for config files relative to the current directory instead of in home for example.

More information about the ffmpeg-devel mailing list