relax dynamic linker check in compiler wrappers
Darshan compiler wrapper generators contained a simple
ldd test on a test executable, and if
ldd reports the executable as dynamically-linked, it will use Darshan's dynamic linker flags. The problem is that MPI could be linked into the executable statically, in which case Darshan instrumentation will not work properly.
This merge request relaxes the dynamic linking check to only use dynamic linking flags if the MPI library is linked in dynamically.
We do this by checking for
nm --dynamic on the test executable and grepping for MPI_Init -- special care is taken for C++ and Fortran due to name mangling.