Telling gcc which linker to assume

Alexandre Oliva aoliva@redhat.com
Wed Mar 21 20:48:00 GMT 2001


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



More information about the Gcc-help mailing list