avoid libfmpich requirement in LD_PRELOAD for Fortran
As noted in the Darshan documentation:
Some systems require libfmpich.so to be listed in the LD_PRELOAD environment variable, and some systems further require the full path to libfmpich.so.
It looks like this may be avoidable by setting an rpath in the libdarshan.so library, as in this example:
lib/libdarshan.so: lib/darshan-mpi-io.po lib/darshan-mpi-init-finalize.po lib/darshan-pnetcdf.po lib/darshan-hdf5.po lib/darshan-posix.po lib/lookup3.po lib/lookup8.po $(CC) $(CFLAGS_SHARED) $(LDFLAGS) -o $@ $^ -Wl,-rpath,/home/pcarns/working/mpich2/install-3.0.4-dyn/lib/ -lpthread -lrt -lz -ldl
Need to determine if there is a portable way to do this.