diff options
author | Greg Steuck <greg@nest.cx> | 2022-09-08 21:52:19 -0700 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-09-14 17:17:43 -0400 |
commit | 43e574f04fc2b612356a9805abe60b708b0b32c9 (patch) | |
tree | e44b4c042dd4610315099d5d17b7c6400ae36406 | |
parent | 71d8db86d159e3f3f4d1d23c124306cac6448a96 (diff) | |
download | haskell-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
```
-rw-r--r-- | m4/fp_find_cxx_std_lib.m4 | 1 |
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++) |