--- Makefile (revision 441414) +++ Makefile (working copy) @@ -42,6 +42,7 @@ --enable-heterogeneous \ --enable-mpi-thread-multiple \ --with-libevent=external \ + --with-wrapper-ldflags=-Wl,-rpath=/usr/local/lib/gcc${GCC_DEFAULT} \ ompi_cv_fortran_ignore_tkr_data=0 USE_LDCONFIG= ${PREFIX}/${MPIDIR}/lib \