configure: Link with pthread on FreeBSD

This commit is contained in:
Jookia 2022-09-09 15:34:36 +10:00 committed by 宋文武
parent 4b43920044
commit 67d61bb9f8

View File

@ -532,6 +532,13 @@ case "$host" in
CXXFLAGS="$CXXFLAGS -D_GLIBCXX_USE_C99=1"
;;
esac
dnl Fix for FreeBSD not automatically linking to pthread for std::thread
case "$host" in
*-*-freebsd*)
LIBS="$LIBS -lpthread"
;;
esac
fi
AM_CONDITIONAL(MACOSX, test x"$macosx" = x"1")