Link tests after GCC_NO_EXECUTABLES

Hans-Peter Nilsson hp@bitrange.com
Wed Dec 5 00:10:00 GMT 2007


On Sat, 1 Dec 2007, Rask Ingemann Lambertsen wrote:

> On Sat, Dec 01, 2007 at 02:37:38PM +0100, Andreas Schwab wrote:
> >
> > Only variables subject to AC_SUBST are available in the generated
> > Makefile.  There is extra_host_args which includes --with-newlib, but
> > this is only passed to configure scripts in host directories (via
> > host_configargs), not target directories.
>
>    Thanks. I frequently configure using --with-newlib --without-newlib and
> configure gets it right, so I won't just grep the configure args for
> --with-newlib. Instead I use AC_SUBST to export with_newlib to the
> Makefile.

Does it work without --with-newlib, i.e. is it automatically
added and works with your change?

If not, passing --with-newlib didn't use to be a requirement,
and I don't think it should be, if it's an *-elf target and
newlib is in the tree.

Or at least let's make it target-dependent.

brgds, H-P



More information about the Gcc-patches mailing list