<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>open</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 tootle):</p>
<p><span class="ap-mention" data-atlassian-id="557058:59e031ba-9bb5-4298-a472-7b99d0ae6f22">@Roland Haas</span> Thanks! Indeed that was enough (with slight modification) to clean up compiling! I have pushed the latest to KadathThorn master so it will be ready for the next rel </p>
<div class="codehilite language-diff"><pre><span></span><span class="gh">diff --git a/src/detect.sh b/src/detect.sh</span>
<span class="gh">index 9f80ed6..5347190 100755</span>
<span class="gd">--- a/src/detect.sh</span>
<span class="gi">+++ b/src/detect.sh</span>
<span class="gu">@@ -89,9 +89,10 @@ echo "END MESSAGE"</span>
# Pass options to Cactus
echo "BEGIN MAKE_DEFINITION"
echo "KADATH_DIR = ${KADATH_DIR}"
<span class="gd">-echo "KADATH_INC_DIRS = ${KADATH_INC_DIRS}"</span>
<span class="gd">-echo "KADATH_LIB_DIRS = ${KADATH_LIB_DIRS}"</span>
<span class="gd">-echo "KADATH_LIBS = ${KADATH_LIBS}"</span>
<span class="gi">+echo "KADATH_INC_DIRS = ${KADATH_INC_DIRS} ${FFTW3_INC_DIRS} ${GSL_INC_DIRS} ${LAPACK_INC_DIRS} ${BOOST_INC_DIRS}"</span>
<span class="gi">+echo "KADATH_LIB_DIRS = ${KADATH_LIB_DIRS} ${FFTW3_LIB_DIRS} ${GSL_LIB_DIRS} ${LAPACK_LIB_DIRS} ${BOOST_LIB_DIRS}"</span>
<span class="gi">+# keep the order like this, since MKL (LAPACK) can contain a (partial) FFTW3 which conflicts</span>
<span class="gi">+echo "KADATH_LIBS = ${KADATH_LIBS} ${FFTW3_LIBS} ${GSL_LIBS} ${LAPACK_LIBS} ${BOOST_LIBS}"</span>
echo "END MAKE_DEFINITION"
echo 'INCLUDE_DIRECTORY $(KADATH_INC_DIRS)'
</pre></div>
<p></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>