[PATCH v2] libdwfl: use GNU strerror_r only when available.
Dmitry V. Levin
Tue Feb 2 02:56:33 GMT 2021
On Mon, Feb 01, 2021 at 09:16:56PM -0300, Érico Nogueira via Elfutils-devel wrote:
> I'm not sure if it's a bug in this configure.ac or this macro, but
> _GNU_SOURCE wasn't defined and lead to XSI strerror_r being used on
> glibc until I added the trick with CFLAGS and old_CFLAGS. It's still way
> slimmer than the previous version :)
> I see that -D_GNU_SOURCE is passed to the build via config/eu.am, maybe
> it could somehow be plugged into configure.ac earlier? I'm not entirely
> sure what's best.
I wonder why don't we just use AC_USE_SYSTEM_EXTENSIONS
instead of all these dances with -D_GNU_SOURCE.
More information about the Elfutils-devel