This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [toplevel patch] Macroize build_subdir & target_subdir, newest version
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Nathanael Nerode <neroden at twcny dot rr dot com>
- Cc: gcc-patches at gcc dot gnu dot org, binutils at sources dot redhat dot com, gdb-patches at sources dot redhat dot com
- Date: 31 May 2003 18:58:23 -0300
- Subject: Re: [toplevel patch] Macroize build_subdir & target_subdir, newest version
- Organization: GCC Team, Red Hat
- References: <20030317144503.GA16592@doctormoo>
On Mar 17, 2003, Nathanael Nerode <neroden@twcny.rr.com> wrote:
> * config/acx.m4: Introduce _GCC_TOPLEV_NONCANONICAL_BUILD,
> _GCC_TOPLEV_NONCANOICAL_HOST, _GCC_TOPLEV_NONCANONICAL_TARGET,
> GCC_TOPLEV_SUBDIRS.
> * configure.in: Use GCC_TOPLEV_SUBDIRS.
This is ok, if still appropriate. Sorry that it took so long for me
to get to it.
We still have problems in deciding what options to pass down to
sub-configures, because autoconf 2.5x's behavior in deciding whether
we're cross compiling or not depends on the actual command-line flags,
not only on the implied defaults. Still, your patch is a step in the
right direction.
As for solving the problem of not passing --build, --host or --target
to sub-configures when it's implied, to avoid crossification :-), one
idea that was floated in the GCC Summit (was it Zack? I seem to
recall two people independently proposing it, but I don't remember who
else did it, sorry) was to set up two different _CONFIGARGS variable
per build, host and target, and grep the autoconf version number in
the configure script to tell which version to use. This sounds like
the only sane (even if ugly) way to avoid having to convert the entire
tree (gcc, src and what not) to the new autoconf at the same time.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer