https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118121
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2024-12-19
Status|UNCONFIRMED |NEW
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
What libiberty/{make-temp-file.c,pex-common.c} do is just unconditionally
declares mkstemps:
extern int mkstemps (char *, int);
So I think the fix should be simple as doing this:
extern "C" int mkstemps (char *, int);
inside lto-wrapper.cc towards the top (with maybe a comment saying it is always
included in libiberty if libc does not have a definition.