[libbluray-devel] [Git][videolan/libbluray][master] configure.ac: Add -lpthread to .pc file if needed

Jean-Baptiste Kempf gitlab at videolan.org
Wed Mar 25 16:04:08 CET 2020



Jean-Baptiste Kempf pushed to branch master at VideoLAN / libbluray


Commits:
4efd8acf by Hugo Beauzée-Luyssen at 2020-03-25T16:01:56+01:00
configure.ac: Add -lpthread to .pc file if needed

- - - - -


1 changed file:

- configure.ac


Changes:

=====================================
configure.ac
=====================================
@@ -146,6 +146,9 @@ AS_IF([test "${SYS}" != "mingw32"], [
     [AC_MSG_ERROR([pthread required])])
   AC_SEARCH_LIBS([pthread_create], [pthread], ,
     [AC_MSG_ERROR([pthread required])])
+  PTHREAD_LIBS="$ac_cv_search_pthread_create"
+  AS_IF([test x"$PTHREAD_LIBS" != x"none required"],
+        [EXTRA_LIBS="$EXTRA_LIBS $PTHREAD_LIBS"])
   AC_SEARCH_LIBS([dlopen], [dl])
   DLOPEN_LIBS="$ac_cv_search_dlopen"
   AS_CASE([$DLOPEN_LIBS],



View it on GitLab: https://code.videolan.org/videolan/libbluray/-/commit/4efd8acf4b0a476eef47f8b99ed8c1b5c6d246a0

-- 
View it on GitLab: https://code.videolan.org/videolan/libbluray/-/commit/4efd8acf4b0a476eef47f8b99ed8c1b5c6d246a0
You're receiving this email because of your account on code.videolan.org.




More information about the libbluray-devel mailing list