This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building GCC 5.3.0 and binutils 2.26


On Fri, Mar 04, 2016 at 10:26:04AM +0000, Tom Cook wrote:
> I'm not trying to replace the system binutils / gcc, but to install a new
> toolchain separately.  When I build binutils, install (into a non-system
> path) and then build gcc with the same prefix, I get a gcc that uses the
> system binutils (eg collect2, ld).  Is there something I'm missing to get
> them to work together?

If you put $prefix/bin first in your PATH after installing binutils,
then the gcc configure should automatically choose the new as and ld.
It is also possible to configure gcc with
AS=path_to_binutils/bin/as LD=path_to_binutils/bin/ld configure ...

-- 
Alan Modra
Australia Development Lab, IBM


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