[Buildroot] [PATCH v2 1/3] package/fontconfig: add pthread as a dependency of a static lib

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Sep 20 13:48:15 UTC 2020


On Sun, 20 Sep 2020 13:58:14 +0200
Bernd Kuhls <bernd.kuhls at t-online.de> wrote:

> Fixes:
> http://autobuild.buildroot.net/results/d2d/d2d73f3c7075ca6e9782b9bb591dae40ab56b6a2/
> 
> ffmpeg configure prints: "ERROR: fontconfig not found using pkg-config"
> 
> Please note that the ffmpeg build error was reproducible but with a
> different error message in ffbuild/config.log:
> 
>   sysroot/usr/lib/libfontconfig.a(fccache.o): in function `lock_cache':
>   fccache.c:(.text+0xcd8): undefined reference to `pthread_mutex_init'
> 
>   arm-buildroot-linux-gnueabi/bin/ld: fccache.c:(.text+0xcf8):
>   undefined reference to `pthread_mutex_destroy'
> 
>   arm-buildroot-linux-gnueabi/bin/ld: fccache.c:(.text+0xd00):
>   undefined reference to `pthread_mutex_lock'
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
> ---
> v2: removed " 1/1" from patch subject

Thanks, series applied. I really like when we fix pkg-config, and use
it more globally to solve static linking issues. Great work.

Just one minor nit: you had forgotten to add FONTCONFIG_AUTORECONF =
YES in PATCH 1/3: you're now patching configure.ac, so it is needed. I
fixed that when applying.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list