[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BUG: library type search order
From: |
Scott James Remnant |
Subject: |
Re: BUG: library type search order |
Date: |
Tue, 03 Feb 2004 19:40:49 +0000 |
On Thu, 2004-01-22 at 18:49, Markus Diesmann wrote:
> The following libraries are installed
> /usr/lib/libmpi.a (LAM MPI)
> /usr/lib/libmpi.la
>
> /opt/scali/lib/libmpi.a (MPI by other manufacturer)
> /opt/scali/lib/libmpi.so
>
> We have to link against /opt/scali/lib/libmpi.so. At the same time we
> cannot remove the LAM MPI from /usr/lib.
>
What's happening here is that Libtool is using the library in /usr/lib
because it *has* a Libtool .la file, and the library in /opt/scali/lib
does not.
ie. Libtool is preferring libraries with .la files.
If you write a valid /opt/scali/lib/libmpi.la file (making sure that
libdir='/opt/scali/lib/libmpi.la') then Libtool does the right thing.
I can't decide whether this is incorrect or not, it doesn't seem
unreasonable that libtool is preferring Libtool libraries, on the other
hand it makes '-L/opt/foo/lib -lfoo' not work as expected if that's not
a Libtool library.
Opinions from the floor?
Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
signature.asc
Description: This is a digitally signed message part
- Re: BUG: library type search order,
Scott James Remnant <=
- Re: BUG: library type search order, Gary V . Vaughan, 2004/02/03
- Re: BUG: library type search order, Peter O'Gorman, 2004/02/03
- Re: BUG: library type search order, Gary V . Vaughan, 2004/02/03
- Re: BUG: library type search order, Scott James Remnant, 2004/02/03
- Re: BUG: library type search order, Peter O'Gorman, 2004/02/04
- Re: BUG: library type search order, Gary V . Vaughan, 2004/02/04
- Re: BUG: library type search order, Peter O'Gorman, 2004/02/04
- Re: BUG: library type search order, Gary V. Vaughan, 2004/02/04
- Re: BUG: library type search order, Peter O'Gorman, 2004/02/04
- Re: BUG: library type search order, Scott James Remnant, 2004/02/04