The pkgconfig/*.pc files created by the imkl module reference the $MKLROOT environment variable which is not usable within *.pc files. The solution I adopted was to add a line MKLROOT=${prefix} after the definition of includedir by doing:
sed -i '/^includedir=.*/a MKLROOT=${prefix}' /opt/EasyBuild/software/imkl/*/mkl/bin/pkgconfig/*
The
pkgconfig/*.pcfiles created by theimklmodule reference the$MKLROOTenvironment variable which is not usable within*.pcfiles. The solution I adopted was to add a lineMKLROOT=${prefix}after the definition ofincludedirby doing:sed -i '/^includedir=.*/a MKLROOT=${prefix}' /opt/EasyBuild/software/imkl/*/mkl/bin/pkgconfig/*