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
Rainer Emrich wrote:
> prj@po.cwru.edu schrieb:
>> 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,
>
> thank's for the hint.
HOST_LDFLAGS does not exist, and you should be able to pass
LDFLAGS_FOR_TARGET on the command-line. Anyways, for your needs all you
have to do is
make BOOT_LDFLAGS=-Wl,-rpath,/somedir
Paolo