This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld searching in /lib for 64-bit libs
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: NightStrike <nightstrike at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Wed, 16 Jan 2008 09:48:18 +0100
- Subject: Re: ld searching in /lib for 64-bit libs
> On 1/14/08, Kai Tietz <Kai.Tietz@onevision.com> wrote:
> > Hi NightStrike,
> >
> > > When I compile binutils for x86_64-pc-mingw32, I generally put all
of
> > > the runtime libraries including crt1.o and crt2.o into
> > > (prefix)/x86_64-pc-mingw32/lib64, where (prefix) is the prefix used
> > > when configuring and installing binutils. ld will not find crt2.o,
> > > however, until I move or copy everything from the aforementioned
lib64
> > > directory into (prefix)/x86_64-pc-mingw32/lib. Is this correct
> > > behavior? I would think that 64-bit libraries should be in lib64,
and
> > > 32-bit libraries should be in lib, consistent with other directory
> > > structures. If I am wrong, where is the proper place for ld to find
> > > crt2.o? What are all the possible locations for it?
> >
> > Yes, ld searches in lib. This is reasoned by the spec-file. May alter
your
> > spec file search directory and it will work as you expect AFAIK.
>
> How?
See Makefile.am setting SEARCH_DIR as $(tooldir)/lib. After installation
you have your linker scripts normally in $(tooldir)/lib/ldscripts, which
have an entry - named SEARCH_DIR - specifying the search directory. If you
alter this one, you can modify the linker search pathes.
Cheers,
i.A. Kai Tietz
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.
------------------------------------------------------------------------------------------
OneVision Software Entwicklungs GmbH & Co. KG
Dr.-Leo-Ritter-StraÃe 9 - 93049 Regensburg
Tel: +49.(0)941.78004.0 - Fax: +49.(0)941.78004.489 - www.OneVision.com
Commerzbank Regensburg - BLZ 750 400 62 - Konto 6011050
Handelsregister: HRA 6744, Amtsgericht Regensburg
KomplementÃrin: OneVision Software Entwicklungs Verwaltungs GmbH
Dr.-Leo-Ritter-StraÃe 9 â 93049 Regensburg
Handelsregister: HRB 8932, Amtsgericht Regensburg - GeschÃftsfÃhrer:
Ulrike DÃhler, Manuela Kluger