[PATCH] Use a non-empty test program to test ability to link

Sandra Loosemore sandra@codesourcery.com
Wed Feb 5 18:52:00 GMT 2020


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.

-Sandra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-a-non-empty-test-program-to-test-ability-to-link.patch
Type: text/x-patch
Size: 2786 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20200205/9f2b731d/attachment.bin>


More information about the Libstdc++ mailing list