This is the mail archive of the gcc-help@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: Telling gcc which linker to assume


On Mar 21, 2001, James Foley <jfoley@cadence.com> wrote:

>     I have a linker problem that appears when I configure
>     gcc to work with the GNU ld, and disappears when I configure
>     gcc with "--without-ld".

--without-gnu-ld, I suppose.  --without-ld would be simply ignored.

>     As the rest of our development environment uses gcc with the
>     gnu linker, I'd like to be able to pass gcc an option that tells it
>     which linker to use, or whether to assume that the GNU linker is
>     there.

>     Is there such an option to gcc?

As long as you do *NOT* configure --with-ld=/path/to/gnu/ld, you can
do the following: create a directory containing only a link to
/usr/ccs/bin/ld, named real-ld, then run gcc
-B/path/to/that/directory/ (note the trailing slash).

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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