<html>#2772: Issues link against Kadath thorns and Intel MKL due to link ordering
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>tootle</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>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td>EinsteinToolkit thorn</td></tr>
</table>
<p>Comment (by Roland Haas):</p>
<p>How about adding `${FFTW3_LIBS}` to KadathThorn’s LIBS output in detect.sh ? Like HDF5 does:</p>
<div class="codehilite"><pre><span></span><span> HDF5_LIB_DIRS="$HDF5_LIB_DIRS $MPI_LIB_DIRS"</span>
<span> HDF5_INC_DIRS="$HDF5_INC_DIRS $MPI_INC_DIRS"</span>
<span> HDF5_LIBS="$HDF5_LIBS $MPI_LIBS"</span>
</pre></div>
<p>That lets you ensure that FFTW3_LIBS is right after Kadath’s. This should work for static linking. For dynamic linking adding it to <code>LD</code> should work. So it’s a cluster specific solution (at least for <code>LD</code>) but so is this issue you are encountering.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2772/issues-link-against-kadath-thorns-and'>https://bitbucket.org/einsteintoolkit/tickets/issues/2772/issues-link-against-kadath-thorns-and</a></p>
</html>