This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: --sysroot-suffix


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]