On Fri, 3 Nov 2023 at 03:04, Ian Lance Taylor <i...@golang.org> wrote: > > The libbacktrace sources, as used by libstdc++-v3, fail to correctly > determine whether the system supports dl_iterate_phdr. The issue is > that the libbacktrace configure assumes that _GNU_SOURCE is defined > during compilation, but the libstdc++-v3 configure does not do that. > This configury failure is the cause of PR 112263. > > This patch fixes the problem. OK for mainline?
Thanks for figuring this one out, I forget toabout _GNU_SOURCE often, because g++ defines it automatically. OK for mainline and gcc-13 and gcc-12, thanks! > > Ian > > PR libbacktrace/112263 > * acinclude.m4: Set -D_GNU_SOURCE in BACKTRACE_CPPFLAGS and when > grepping link.h for dl_iterate_phdr. > * configure: Regenerate.