package/fontconfig: add pthread as a dependency of a static lib
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 20 Sep 2020 11:58:14 +0000 (13:58 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 20 Sep 2020 13:47:03 +0000 (15:47 +0200)
commita5d70b2a0356ee3cf55ef6ae5c2718342fd24a87
treef68c6ae76e431a1dfc847d4717ac6a2d2d053bbd
parent649f4e8c77c5ddbbcf1f3dd63156b269f76b57f5
package/fontconfig: add pthread as a dependency of a static lib

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@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/fontconfig/0002-add-pthread-as-a-dependency-of-a-static-lib.patch [new file with mode: 0644]
package/fontconfig/fontconfig.mk