This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Building GCC 5.3.0 and binutils 2.26
- From: Alan Modra <amodra at gmail dot com>
- To: Tom Cook <tom dot k dot cook at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 4 Mar 2016 21:08:44 +1030
- Subject: Re: Building GCC 5.3.0 and binutils 2.26
- Authentication-results: sourceware.org; auth=none
- References: <CAFSh4UyxuVS2bxv=n6jABX=s-WOVeBcrHxvv5gDhreU_-X+zVA at mail dot gmail dot com> <20160304102255 dot GB9617 at bubble dot grove dot modra dot org> <CAFSh4UwxjGm-MepxgUZ7xUJHQHWqACJ_KifdcZD3GDfrXk=ZGQ at mail dot gmail dot com>
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