This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: --sysroot-suffix
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Sun, 16 Jan 2005 22:38:33 -0500
- Subject: Re: PATCH: --sysroot-suffix
- References: <200501170322.j0H3MJWt031460@sirius.codesourcery.com>
On Sun, Jan 16, 2005 at 07:22:19PM -0800, Mark Mitchell wrote:
>
> This patch adds a --sysroot-suffix option to ld.
>
> The scenario in which this is useful is as follows. Suppose that you
> have built a single cross compiler (say, for MIPS), but two versions of
> GLIBC (installed, in, say, "eb" and "el" subdirectories of prefix).
> It's insufficient just to provide appropriate -L options because the
> linker has to be able to resolve linker scripts that contain absolute
> paths correctly. The --sysroot-suffix option to the linker
> complements the SYSROOT_SUFFIX_SPEC already in GCC.
>
> OK to commit?
Would a --sysroot option work for you instead? I can't think of any
realistic configurations where GCC and LD would have different
sysroots, so passing it down from gcc makes some sense.
(This would work well with the Darwin folks trying to make -isysroot
work for everything.)
--
Daniel Jacobowitz