This is the mail archive of the
mailing list for the GCC project.
Re: PATCH Finding gas
- To: law at cygnus dot com
- Subject: Re: PATCH Finding gas
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 08 Sep 1998 19:00:03 -0300
- Cc: Nathan Sidwell <nathan at acm dot org>, egcs-patches at cygnus dot com, Eric Schweitz <schweitz at nortel dot ca>
- References: <firstname.lastname@example.org>
Jeffrey A Law <email@example.com> writes:
> In message <firstname.lastname@example.org>you write:
>> Jeffrey A Law <email@example.com> writes:
>> > I would much prefer us encourage folks to install the various tools
>> > with the same --prefix. If they do that all this stuff will just
>> > work.
>> I dislike this approach because then I cannot upgrade binutils without
>> either overwriting its previous installation or installing egcs again
>> together with the new binutils in a separate prefix.
>> We could even auto-detect GNU as and GNU ld, instead of requiring
>> users to specify them, and create the appropriate links in the
>> build directories too.
> I really dislike the idea of creating symlinks to other
> files/directories from within the gcc install tree.
Then we should hard-code the pathnames of as and ld in the gcc binary,
or perhaps in the (default) specs.
> One could argue that the path should be searched earlier and that
> may allow you to do what you want.
This is not always desirable. Assume I have installed gcc
--with-gnu-ld on SunOS, and GNU ld lives in /usr/local/bin, and some
other user runs gcc with /usr/bin before /usr/local/bin in the PATH:
gcc will find /bin/ld, and linking will not work.
There must be a way for gcc to remember which assembler and which
linker it should use, and try them before searching for alternatives.
Perhaps we should AC_PATH_PROG AS and LD, so that users could define
which assembler and which linker to use at configure-time. New
configure options --with-ld=/pathname/to/ld and
--with-as=/pathname/to/as could be provided too. The existence of GNU
as and GNU ld could then be auto-detected.
Universidade Estadual de Campinas, SP, Brasil