Use a non-empty test program to test ability to link.
authorSandra Loosemore <sandra@codesourcery.com>
Wed, 12 Feb 2020 20:20:15 +0000 (12:20 -0800)
committerSandra Loosemore <sandra@codesourcery.com>
Wed, 12 Feb 2020 21:22:07 +0000 (13:22 -0800)
commit02ce382cd323097f9d02fbf91e0a3f59ebcd3d30
tree39f4cd0704638598d217061bd9661dfe6dc3d8bc
parent3f3932a0ec875cb7cca187018f3f8f05f2519d3e
Use a non-empty test program to test ability to link.

On bare-metal targets, I/O support is typically provided by a BSP and
requires a linker script and/or hosting library to be specified on the
linker command line.  Linking an empty program with the default linker
script may succeed, however, which confuses libstdc++ configuration
when programs that probe for the presence of various I/O features fail
with link errors.

2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>

PR libstdc++/79193
PR libstdc++/88999

config/
* no-executables.m4: Use a non-empty program to test for linker
support.

libgcc/
* configure: Regenerated.

libgfortran/
* configure: Regenerated.

libiberty/
* configure: Regenerated.

libitm/
* configure: Regenerated.

libobjc/
* configure: Regenerated.

libquadmath/
* configure: Regenerated.

libssp/
* configure: Regenerated.

libstdc++v-3/
* configure: Regenerated.
18 files changed:
config/ChangeLog
config/no-executables.m4
libgcc/ChangeLog
libgcc/configure
libgfortran/ChangeLog
libgfortran/configure
libiberty/ChangeLog
libiberty/configure
libitm/ChangeLog
libitm/configure [changed mode: 0644->0755]
libobjc/ChangeLog
libobjc/configure
libquadmath/ChangeLog
libquadmath/configure
libssp/ChangeLog
libssp/configure
libstdc++-v3/ChangeLog
libstdc++-v3/configure