Hi Aaron, On Sun, Jun 14, 2026 at 10:56:06PM -0400, Aaron Merey wrote: > Currently there is no API for applications to detect whether elfutils > libraries are built with thread safety support enabled (via the > --enable-thread-safety configure option). > > Add macro _ELFUTILS_THREAD_SAFE to version.h. This macro is set to zero > if thread safety support is not enabled and non-zero if it is.
Maybe it is easier for the users to only define it when the elfutils libraries are built with thread safety support. They will have to check that anyway for older elfutils versions. So then they can just write #ifdef _ELFUTILS_THREAD_SAFE ... #else ... #endif Instead of first checking it is defined and then check if it is enabled. Cheers, Mark
