This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: $tooldir
- To: law at cygnus dot com
- Subject: Re: $tooldir
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 20 Jan 1999 02:55:49 -0200
- Cc: Manfred Hollstein <manfred at s-direktnet dot de>, egcs at egcs dot cygnus dot com
- References: <18338.916788284@hurl.cygnus.com>
On Jan 19, 1999, Jeffrey A Law <law@hurl.cygnus.com> wrote:
> First requirement is we do not want to hose $tooldir uses in other Makefiles
> outside of gcc
> We also do not want to hose configurations which explicitly specify locations
> for tooldir or libsubdir.
> Am I missing any other issues?
Not that I can think of. But you reminded me of a problem I've been
thinking of fixing for quite a long time, but that I haven't been able
to pay attention to for quite a long time: --with-as and --with-ld
can be used to hard-code the pathnames of the assembler and the linker
into gcc and collect2.
The problem is that sometimes I'd like to try a new assembler or a new
linker, and I wouldn't like to have to rebuild gcc in order to try
them, and I don't want to install versions of as and ld that might
break egcs while other users are using it.
So I came up with the following idea: if any -Bdir argument is given,
gcc would search for as and ld in those directories before trying to
use the hard-coded pathnames.
Does this sound reasonable?
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil