From 43e574f04fc2b612356a9805abe60b708b0b32c9 Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Thu, 8 Sep 2022 21:52:19 -0700 Subject: Repair c++ probing on OpenBSD Failure without this change: ``` checking C++ standard library flavour... libc++ checking for linkage against 'c++ c++abi'... failed checking for linkage against 'c++ cxxrt'... failed configure: error: Failed to find C++ standard library ``` --- m4/fp_find_cxx_std_lib.m4 | 1 + 1 file changed, 1 insertion(+) (limited to 'm4') 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++) -- cgit v1.2.1