From 67d61bb9f834c93079d5b1451e0dbbefdc8935a5 Mon Sep 17 00:00:00 2001 From: Jookia Date: Fri, 9 Sep 2022 15:34:36 +1000 Subject: [PATCH] configure: Link with pthread on FreeBSD --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index d82a55ab3..883808b1d 100644 --- a/configure.ac +++ b/configure.ac @@ -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")