0001-add-pthread-as-a-dependency-of-a-static-lib.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 40ec04a8bf36dd8d0aa3da98b167792ce2dcd114 Mon Sep 17 00:00:00 2001
  2. From: Silvan Scherrer <silvan.scherrer@aroa.ch>
  3. Date: Sun, 20 Sep 2020 12:52:08 +0200
  4. Subject: [PATCH] add pthread as a dependency of a static lib
  5. Downloaded from https://trac.netlabs.org/ports/changeset/2220
  6. Upstream: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/merge_requests/121
  7. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  8. ---
  9. configure.ac | 2 ++
  10. fontconfig.pc.in | 4 ++--
  11. 2 files changed, 4 insertions(+), 2 deletions(-)
  12. diff --git a/configure.ac b/configure.ac
  13. index f3189a7..594d6fd 100644
  14. --- a/configure.ac
  15. +++ b/configure.ac
  16. @@ -690,6 +690,8 @@ fi
  17. have_pthread=false
  18. if test "$os_win32" = no; then
  19. AX_PTHREAD([have_pthread=true])
  20. + AC_SUBST(PTHREAD_CFLAGS)
  21. + AC_SUBST(PTHREAD_LIBS)
  22. fi
  23. if $have_pthread; then
  24. LIBS="$PTHREAD_LIBS $LIBS"
  25. diff --git a/fontconfig.pc.in b/fontconfig.pc.in
  26. index 61b35fb..f823bac 100644
  27. --- a/fontconfig.pc.in
  28. +++ b/fontconfig.pc.in
  29. @@ -14,5 +14,5 @@ Version: @VERSION@
  30. Requires: @PKGCONFIG_REQUIRES@
  31. Requires.private: @PKGCONFIG_REQUIRES_PRIVATELY@
  32. Libs: -L${libdir} -lfontconfig
  33. -Libs.private: @ICONV_LIBS@ @PKG_EXPAT_LIBS@
  34. -Cflags: -I${includedir} @ICONV_CFLAGS@ @PKG_EXPAT_CFLAGS@
  35. +Libs.private: @ICONV_LIBS@ @PKG_EXPAT_LIBS@ @PTHREAD_LIBS@
  36. +Cflags: -I${includedir} @ICONV_CFLAGS@ @PKG_EXPAT_CFLAGS@ @PTHREAD_CFLAGS@
  37. --
  38. 2.27.0