Hi,<br><br><div>I just noticed it isn&#39;t possible to overwrite where the GROMACS binaries search for their shared libraries (after they have been installed). The reason is that the library search path is encoded as the rpath. And the libraries are searched in the order:<br>

<br>RPATH<br>LD_LIBRARY_PATH<br>RUNPATH<br><br>Thus GROMACS binaries (have an rpath specified) always search the rpath first before the LD_LIBRARY_PATH is searched. By encoding the library path in the runpath instead it is still possible to overwrite it by setting the LD_LIBRARY_PATH. This can be done by at compile time by running ld with the --enable-new-dtags. </div>

<div><br></div><div>Is there a reason why we don&#39;t run ld with --enable-new-dtags? I think it would be preferable if it is still possible to overwrite the path with LD_LIBRARY_PATH.</div><div>One can get this by manually adding &quot;-Wl,--enable-new-dtags&quot; to LDFLAGS but I think it would be better if it is the default.</div>

<div><br></div><div>For information of why enable-new-dtags is better and the different of rpath and runpath, see:</div><div><a href="http://blog.devork.be/2009/02/specifying-runpath-in-sofiles.html">http://blog.devork.be/2009/02/specifying-runpath-in-sofiles.html</a></div>

<div><a href="http://hackage.haskell.org/trac/ghc/wiki/SharedLibraries/Management">http://hackage.haskell.org/trac/ghc/wiki/SharedLibraries/Management</a></div><div><br>Roland<br>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov">cmb.ornl.gov</a><br>

865-241-1537, ORNL PO BOX 2008 MS6309<br>
</div>