From 58aca376a5143ac6d8adb93795a3e668c316fa4f Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Fri, 12 Jan 2024 21:59:09 +0800 Subject: [PATCH] build: Use `UNW_LOCAL_ONLY` --- configure.ac | 1 - poseidon/utils.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 19bc2939..d2ec02c3 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,6 @@ AS_VAR_SET([abi_suffix], [beta.0]) AC_CHECK_LIB([dl], [dlopen], [], [AC_MSG_ERROR([dl library not found])]) AC_CHECK_LIB([unwind], [unw_backtrace], [], [AC_MSG_WARN([libunwind not found; exceptions will not contain backtraces])]) -AC_CHECK_LIB([unwind-x86_64], [_Ux86_64_init_local]) AC_CHECK_LIB([pthread], [pthread_create], [], [AC_MSG_ERROR([pthread library not found])]) AC_CHECK_LIB([z], [deflate], [], [AC_MSG_ERROR([zlib not found])]) AC_CHECK_LIB([ssl], [TLS_method], [], [AC_MSG_ERROR([OpenSSL not found])]) diff --git a/poseidon/utils.cpp b/poseidon/utils.cpp index 0bc78fcd..29d2bfc6 100644 --- a/poseidon/utils.cpp +++ b/poseidon/utils.cpp @@ -5,6 +5,7 @@ #include "utils.hpp" #include #ifdef HAVE_LIBUNWIND +#define UNW_LOCAL_ONLY 1 #include #endif namespace poseidon {