[PATCH] Use a non-empty test program to test ability to link
Jonathan Wakely
jwakely@redhat.com
Thu Feb 6 08:57:00 GMT 2020
On 05/02/20 11:52 -0700, Sandra Loosemore wrote:
>This patch is for PR 79193 and 88999, problems where libstdc++ is
>mis-configuring itself when building for a bare-metal target because
>it thinks it can link programs without pulling in the BSP that
>provides low-level I/O support. (Specifically, this was observed on
>nios2-elf with Newlib and GDB semihosting.) It'll build just fine if
>it recognizes that it can only compile programs and not link them, but
>it's confused because using an empty program to test for ability to
>link succeeds.
>
>Is this configure change OK, and suitable for stage 4?
>
>BTW, I did run autoconf in every subdirectory that contains a
>configure.ac, but it appears only libstc++-v3 actually uses this test;
>all the other regenerated configure scripts were unchanged.
Thanks for making this work properly.
No objection from me, but I can't approve the top-level configury
change, and the whole "no executables" thing is a bit of a mystery to
me. Joseph is probably the right person to approve that, if no other
relevant maintainer responds.
More information about the Libstdc++
mailing list