This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld -l doesn't link with Open-MPI shared libraries
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "Oleg V. Zhylin" <ovz at yahoo dot com>
- Cc: binutils at sourceware dot org
- Date: Sun, 16 Nov 2008 09:34:00 +1030
- Subject: Re: ld -l doesn't link with Open-MPI shared libraries
- References: <547025.65598.qm@web56604.mail.re3.yahoo.com>
On Sat, Nov 15, 2008 at 05:22:41AM -0800, Oleg V. Zhylin wrote:
> strace revealed that ld doesn't look for libmpi_f90.so at all but
> instead looks for libmpi_f90.a everywhere in library search path
> directories. That's despite manual page for ld says that if system
> suport shared libraries it will attempt to link shared library before
> static one when searching for a library specified in -l parameter.
Perhaps you told ld not to use shared libraries? Any of -static,
-Bstatic, -dn, -non_shared, -a archive, -nmagic, -n, -omagic, -N
will disable them. It's also possible to build ld without support
for shared libraries.
--
Alan Modra
Australia Development Lab, IBM