mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-23 04:43:50 +01:00
Fixed static build with gfortran
This commit is contained in:
parent
ded78166db
commit
abff0f0c44
@ -123,8 +123,12 @@ echo "Copying dynamic libraries"
|
|||||||
# --------------------------
|
# --------------------------
|
||||||
|
|
||||||
MKL_LIBS=$(find_libs ${FORTRAN_EXEC} | grep libmkl | head -1)
|
MKL_LIBS=$(find_libs ${FORTRAN_EXEC} | grep libmkl | head -1)
|
||||||
|
if [[ -n ${MKL_LIBS} ]]
|
||||||
|
then
|
||||||
MKL_LIBS=$(dirname ${MKL_LIBS})
|
MKL_LIBS=$(dirname ${MKL_LIBS})
|
||||||
MKL_LIBS=$(ls ${MKL_LIBS}/libmkl_{def,avx,avx2}.so)
|
MKL_LIBS=$(ls ${MKL_LIBS}/libmkl_{def,avx,avx2}.so)
|
||||||
|
fi
|
||||||
|
|
||||||
ALL_LIBS=$(find_libs ${OCAML_EXEC} ${FORTRAN_EXEC})
|
ALL_LIBS=$(find_libs ${OCAML_EXEC} ${FORTRAN_EXEC})
|
||||||
cp -- ${ALL_LIBS} ${MKL_LIBS} ${QPACKAGE_STATIC}/extra_lib
|
cp -- ${ALL_LIBS} ${MKL_LIBS} ${QPACKAGE_STATIC}/extra_lib
|
||||||
if [[ $? -ne 0 ]] ;
|
if [[ $? -ne 0 ]] ;
|
||||||
@ -133,12 +137,7 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp -- ${QPACKAGE_STATIC}/extra_lib/{libiomp*,libmkl*} ${QPACKAGE_STATIC}/lib/
|
cp -- ${QPACKAGE_STATIC}/extra_lib/lib{[gi]omp*,mkl*,lapack*,blas*,z*} ${QPACKAGE_STATIC}/lib/
|
||||||
if [[ $? -ne 0 ]] ;
|
|
||||||
then
|
|
||||||
echo 'mv -- ${QPACKAGE_STATIC}/extra_lib/{libiomp*,libmkl*} ${QPACKAGE_STATIC}/lib/'
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
echo "Copying EMSL_Basis directory"
|
echo "Copying EMSL_Basis directory"
|
||||||
|
Loading…
Reference in New Issue
Block a user