This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld fails to look under /usr/$arch-linux-gnu/lib64
- From: Hector Oron <hector dot oron at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 01 Apr 2009 18:21:59 +0200
- Subject: Re: ld fails to look under /usr/$arch-linux-gnu/lib64
- References: <dd0a3d700903061902w437acc30jcc246b1d63e79455@mail.gmail.com> <dd0a3d700903130431k6b5c92e6t186ee1034719c67d@mail.gmail.com> <49D391ED.9010503@redhat.com>
Hi Nick,
>> I have also been trying --with-sysroot option in binutils (2.18 and
>> 2.19) and gcc (4.3), could you give me a hint on how to teach linker
>> to look for
>> /usr/s390-linux-gnu/lib64/libc.so, which it really is there.
>
> It sounds to me like you either need to extend the spec file used by gcc
> to include the relavent directory, or else define one of the
> MD_STARTFILE_PREFIX_<n> target macros.
>
> If you want to extend the linker itself, which I do not really
> recommend, then you are going to need to edit the ld/configure.host file
> and add the directory to the definition of HOSTING_LIBS for whichever
> target you are using.
Thank you very much for the tip, I'll try it, after thinking and looking
at this issue with I still have opened, I believe it's my gcc's fault
not ld.
Kind regards