https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91833
Richard Henderson <rth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rth at gcc dot gnu.org --- Comment #2 from Richard Henderson <rth at gcc dot gnu.org> --- Hmm. When I built aarch64-elf for newlib, configure automatically sets inhibit_libc, which avoids the whole issue. While a test vs __GLIBC__ might work, a configure test vs sys/auxv.h is probably better. I see current musl also provides this header. Pekka, what library are you using?