This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix SPARC64 GNU/Linux linker specs for sysroots
- From: David Miller <davem at davemloft dot net>
- To: joseph at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 13 Aug 2008 03:32:35 -0700 (PDT)
- Subject: Re: Fix SPARC64 GNU/Linux linker specs for sysroots
- References: <Pine.LNX.4.64.0808131020580.17288@digraph.polyomino.org.uk>
From: "Joseph S. Myers" <joseph@codesourcery.com>
Date: Wed, 13 Aug 2008 10:22:59 +0000 (UTC)
> config/sparc/linux64.h has some linker specs passing -Y P options.
> These put a directory in the linker search path, and as such they need
> to use %R so the right directory is used in the sysroot case. This
> patch adds %R to these specs. (Other targets probably need this as
> well, but this is the one I've tested and where I came across the
> issue in conjunction with linker warnings for inappropriate uses of
> host directories as discussed at
> <http://sourceware.org/ml/binutils/2008-08/msg00070.html>.)
>
> Tested with no regressions with cross to sparc64-linux-gnu. OK to
> commit?
This looks fine to me.