From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sun, 20 Sep 2020 15:48:15 +0200 Subject: [Buildroot] [PATCH v2 1/3] package/fontconfig: add pthread as a dependency of a static lib In-Reply-To: <20200920115816.1567616-1-bernd.kuhls@t-online.de> References: <20200920115816.1567616-1-bernd.kuhls@t-online.de> Message-ID: <20200920154815.3dae7b34@windsurf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Sun, 20 Sep 2020 13:58:14 +0200 Bernd Kuhls 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 > --- > 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