summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/fp_find_cxx_std_lib.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/fp_find_cxx_std_lib.m4 b/m4/fp_find_cxx_std_lib.m4
index 24f78d0a6f..09f4524d89 100644
--- a/m4/fp_find_cxx_std_lib.m4
+++ b/m4/fp_find_cxx_std_lib.m4
@@ -75,6 +75,7 @@ EOF
case $CXX_STD_LIB_FLAVOUR in
c++)
try_libs "-lc++ -lc++abi" "libc++.so" "c++ c++abi" || \
+ try_libs "-lc++ -lc++abi -lpthread" "libc++.so" "c++ c++abi pthread" || \
try_libs "-lc++ -lcxxrt" "libc++.so" "c++ cxxrt" ||
AC_MSG_ERROR([Failed to find C++ standard library]) ;;
stdc++)