From 1169e93d2ddec211d85a7932235f3c0d1c0060ab Mon Sep 17 00:00:00 2001 From: Shuai Zhang Date: Mon, 29 Jul 2024 20:46:40 +0800 Subject: [PATCH] feat(symbolize): Symbolize detection support HAVE_LINK_H link.h is usually provided by glibc. Current implementation of symbolize can work on link.h. Enhance the symbolize detection logic to support link.h, AKA. define HAVE_SYMBOLIZE if defined(HAVE_LINK_H). --- src/symbolize.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/symbolize.h b/src/symbolize.h index d9ca52ddc..7325c0914 100644 --- a/src/symbolize.h +++ b/src/symbolize.h @@ -82,6 +82,9 @@ // defined by gcc # if defined(HAVE_ELF_H) || defined(HAVE_SYS_EXEC_ELF_H) # define HAVE_SYMBOLIZE +// provided by glibc +# elif defined(HAVE_LINK_H) +# define HAVE_SYMBOLIZE # elif defined(GLOG_OS_MACOSX) && defined(HAVE_DLADDR) // Use dladdr to symbolize. # define HAVE_SYMBOLIZE