On Jan 27, 2021, at 2:00 AM, Gilles Gouaillardet via devel 
<devel@lists.open-mpi.org<mailto:devel@lists.open-mpi.org>> wrote:

Tim,

a simple option is to

configure ... LDFLAGS="-Wl,--enable-new-dtags"


If Open MPI is built with this option, then LD_LIBRARY_PATH takes precedence 
over rpath

(the default is the opposite as correctly pointed by Yossi in an earlier 
message)

Are you sure about the default?  I just did a default Open MPI v4.1.0 build on 
Linux with gcc 8.x:

$ mpicc --showme
gcc -I/home/jsquyres/bogus/include -pthread -Wl,-rpath 
-Wl,/home/jsquyres/bogus/lib -Wl,--enable-new-dtags -L/home/jsquyres/bogus/lib 
-lmpi

--
Jeff Squyres
jsquy...@cisco.com<mailto:jsquy...@cisco.com>

Reply via email to