This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Can't build with cc on Solaris
- To: aoliva at cygnus dot com
- Subject: Re: Can't build with cc on Solaris
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 3 Apr 2000 09:20:51 -0700
- CC: binutils at sourceware dot cygnus dot com, libtool at gnu dot org
- References: <orvh1z7nmi.fsf@zecarneiro.lsd.ic.unicamp.br>
From: Alexandre Oliva <aoliva@cygnus.com>
Date: 03 Apr 2000 02:35:33 -0300
binutils top-level configure passes --with-gnu-ld down to sub-projects
`configure' commands whenever it finds `ld' is going to be built.
I think that is a bug.
If you are doing a one-tree build with the binutils and gcc, then it
is appropriate to pass down --with-gnu-ld when building gcc.
However, I don't see why any of the binutils should be built with
--with-gnu-ld. --with-gnu-ld is an option which describes the build
environment. The fact that the GNU linker is being built says nothing
about whether it is being built with the GNU linker.
At the time I added the --with-gnu-ld option to the top level
configure, gcc was the only thing that cared about it.
So I think the correct fix for the binutils is to not pass down
--with-gnu-ld at all. If we want to continue to support one tree
builds, then we should only pass --with-gnu-ld to gcc and to
TARGET_CONFIGDIRS.
Ian