#2772: Issues link against Kadath thorns and Intel MKL due to link ordering
Reporter: tootle Status: new Milestone: Version: Type: bug Priority: major Component: EinsteinToolkit thorn
Comment (by Roland Haas):
How about adding `${FFTW3_LIBS}` to KadathThorn’s LIBS output in detect.sh ? Like HDF5 does:
``` HDF5_LIB_DIRS="$HDF5_LIB_DIRS $MPI_LIB_DIRS" HDF5_INC_DIRS="$HDF5_INC_DIRS $MPI_INC_DIRS" HDF5_LIBS="$HDF5_LIBS $MPI_LIBS" ```
That lets you ensure that FFTW3_LIBS is right after Kadath’s. This should work for static linking. For dynamic linking adding it to `LD` should work. So it’s a cluster specific solution (at least for `LD`) but so is this issue you are encountering.
-- Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2772/issues-link-agains...
trac@lists.einsteintoolkit.org