Commit 0e232d47 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Ensure -lpthread will be used when linking statically on linux

parent 1afc51e4
...@@ -46,6 +46,8 @@ case "${host_os}" in ...@@ -46,6 +46,8 @@ case "${host_os}" in
linux*) linux*)
SYS=linux SYS=linux
CXXFLAGS="${CXXFLAGS} -pthread" CXXFLAGS="${CXXFLAGS} -pthread"
dnl Specify -lpthread as part of Libs.private, in case of a static build
THREAD_LIBS="-lpthread"
;; ;;
bsdi*) bsdi*)
SYS=bsdi SYS=bsdi
...@@ -326,4 +328,6 @@ Makefile ...@@ -326,4 +328,6 @@ Makefile
medialibrary.pc medialibrary.pc
]) ])
AC_SUBST(THREAD_LIBS)
AC_OUTPUT AC_OUTPUT
...@@ -8,4 +8,4 @@ Description: cross platform medialibrary ...@@ -8,4 +8,4 @@ Description: cross platform medialibrary
Version: @PACKAGE_VERSION@ Version: @PACKAGE_VERSION@
Cflags: -I${includedir} Cflags: -I${includedir}
Libs: -L${libdir} -lmedialibrary Libs: -L${libdir} -lmedialibrary
Libs.private: -lsqlite3 @LIBJPEG_LIBS@ Libs.private: -lsqlite3 @LIBJPEG_LIBS@ @THREAD_LIBS@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment