summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGreg Steuck <greg@nest.cx>2022-09-08 21:52:19 -0700
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-09-14 17:17:43 -0400
commit43e574f04fc2b612356a9805abe60b708b0b32c9 (patch)
treee44b4c042dd4610315099d5d17b7c6400ae36406 /m4
parent71d8db86d159e3f3f4d1d23c124306cac6448a96 (diff)
downloadhaskell-43e574f04fc2b612356a9805abe60b708b0b32c9.tar.gz
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 ```
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++)