On Tue, 15 Oct 2019 15:40:24 +0000 "Jeff Squyres \(jsquyres\) via devel" <devel@lists.open-mpi.org> wrote: ... > 1) do you expect this to just work even if the linker has no idea > where to find libsharp.so ? > > No, of course not. :-) That's what the additional -L was for.
LIBRARY_PATH is the corresponding variable for -L if one wants one. This should work for both static and dynamic libraries as -L. LD_LIBRARY_PATH on the other hand is run time for dynamic libraries (configures the logic used by ld.so). In a similar manner CPATH is an option to -I. /Peter K