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.
This commit is contained in:
sdomi 2024-07-05 13:22:49 +02:00 committed by Nico Weber
parent 37c66c1520
commit 4cc93cf80f

View file

@ -10,7 +10,7 @@
#include <AK/StringBuilder.h>
#include <AK/StringView.h>
#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