<html>#2677: add -Wl,--rpath,FOO sets RUNPATH rather than RPATH for new linkers
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td></td></tr>
<tr><td style='text-align:right'>     Type:</td><td>enhancement</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>Cactus</td></tr>
</table>

<p>The elf RPATH variable has been declared obsolete and instead RUNPATH introduced. The latter only affects the search path of the actual executable and not that of any libraries it loads. While maybe a good idea from the point of view of not having the top level executable changing search path for its libraries, this does not work on all clusters.</p>
<p>On frontera the module provided libraries do not set RUNPATH at all and instead rely on a <code>module load</code> and <code>LD_LIBRARY_PATH</code> to set up correct search paths. Which can be annoying if one wants to avoid simfactory to run simulations (which would load the modules).</p>
<p>One can pass an options <code>-Wl,--disable-new-dtags</code> to make a <em>new</em> linker use the <em>old</em> meaning of <code>-Wl,--rpath</code>. This may be something to consider for Cactus' configuration scripts.</p>
<p>See <a data-is-external-link="true" href="https://stackoverflow.com/questions/70149080/ldd-shows-so-not-found-but-runpath-contains-the-lib" rel="nofollow">https://stackoverflow.com/questions/70149080/ldd-shows-so-not-found-but-runpath-contains-the-lib</a> for references on this <a data-is-external-link="true" href="https://stackoverflow.com/questions/52018092/how-to-set-rpath-and-runpath-with-gcc-ld#comment90987961_52018092" rel="nofollow">https://stackoverflow.com/questions/52018092/how-to-set-rpath-and-runpath-with-gcc-ld#comment90987961_52018092</a></p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2677/add-wl-rpath-foo-sets-runpath-rather-than'>https://bitbucket.org/einsteintoolkit/tickets/issues/2677/add-wl-rpath-foo-sets-runpath-rather-than</a></p>
</html>