This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Telling gcc which linker to assume
- To: jfoley at cadence dot com
- Subject: Re: Telling gcc which linker to assume
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 22 Mar 2001 01:48:08 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <3AB8EBBA.5325CF53@cadence.com>
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