On Fri, 8 Jun 2018, Jonathan Wakely wrote:

> > The root cause is PR66203 which I reported quite some time ago, which
> > points to a newlib problem: on aarch64 there is no default rom
> > monitor, one has to explicitly use a --specs flag for the link to
> > succeed.
> 
> I have no idea why this causes the libstdc++ configuration problem
> though, I don't understand the issue.

Generically libstdc++ should not be doing link tests for bare-metal 
targets; rather, there is a hardcoded set of defines in configure.ac for 
functions present on such targets.  (For most other targets, link tests 
*should* be run even when cross-compiling, there have been plenty of bugs 
in the past where something tested in the $GLIBCXX_IS_NATIVE case wasn't 
also tested in crossconfig.m4 for targets such as GNU/Linux where a target 
libc is guaranteed to be linkable against for building libstdc++.)

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to