This is the mail archive of the binutils@sourceware.org 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: ld -l doesn't link with Open-MPI shared libraries


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


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