From 4cc93cf80fb0d5217f8eadd4b10dd39548aceac0 Mon Sep 17 00:00:00 2001 From: sdomi Date: Fri, 5 Jul 2024 13:22:49 +0200 Subject: [PATCH] AK: Do not build against libexecinfo on non-glibc systems It seems that libexecinfo was broken on musl (and possibly other libcs) for quite a while now (resulting in a segfault, or returning 0 frames). Hence, we shouldn't include it there because it doesn't provide any added functionality. --- AK/Assertions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Assertions.cpp b/AK/Assertions.cpp index ed84603d665..5942878e080 100644 --- a/AK/Assertions.cpp +++ b/AK/Assertions.cpp @@ -10,7 +10,7 @@ #include #include -#if defined(AK_OS_LINUX) || defined(AK_LIBC_GLIBC) || defined(AK_OS_BSD_GENERIC) || defined(AK_OS_SOLARIS) || defined(AK_OS_HAIKU) +#if (defined(AK_OS_LINUX) && defined(AK_LIBC_GLIBC)) || defined(AK_OS_BSD_GENERIC) || defined(AK_OS_SOLARIS) || defined(AK_OS_HAIKU) # define EXECINFO_BACKTRACE #endif