This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Passing LDFLAGS to stage2 and stage3 gcc
- From: prj at po dot cwru dot edu (Paul Jarc)
- To: Rainer Emrich <r dot emrich at de dot tecosim dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 09 Sep 2008 04:19:45 -0400
- Subject: Re: Passing LDFLAGS to stage2 and stage3 gcc
- References: <48C62F87.4050109@de.tecosim.com>
Rainer Emrich <r.emrich@de.tecosim.com> wrote:
> So I wan't to pass LDFLAGS="-Wl, -rpath, /somedir" to stage3 to link gcc, cpp,
> etc. with the rpath information.
I do this by editing LDFLAGS_FOR_TARGET in the top-level Makefile.in,
and also passing LDFLAGS, BOOT_LDFLAGS, and HOST_LDFLAGS assignments
as arguments to make. I'm not cross-compiling, though, so you may
have to adjust that somewhat.
paul