This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: $tooldir


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]