mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 22:25:32 -04:00
Toolchain: Link libmpifort explicitly
This commit is contained in:
parent
a938171505
commit
0fa3d6caf5
1 changed files with 3 additions and 2 deletions
|
|
@ -83,8 +83,9 @@ case "$with_mpich" in
|
|||
check_command mpicxx "mpich"
|
||||
export MPICXX=mpicxx
|
||||
fi
|
||||
check_lib -lmpi "mpich"
|
||||
check_lib -lmpifor "mpich"
|
||||
check_lib -lmpicxx "mpich"
|
||||
check_lib -lmpi "mpich"
|
||||
add_include_from_paths MPICH_CFLAGS "mpi.h" $INCLUDE_PATHS
|
||||
add_lib_from_paths MPICH_LDFLAGS "libmpi.*" $LIB_PATHS
|
||||
;;
|
||||
|
|
@ -101,7 +102,7 @@ case "$with_mpich" in
|
|||
;;
|
||||
esac
|
||||
if [ "$with_mpich" != "__DONTUSE__" ]; then
|
||||
MPICH_LIBS="-lmpi -lmpicxx"
|
||||
MPICH_LIBS="-lmpifort -lmpicxx -lmpi"
|
||||
if [ "$with_mpich" != "__SYSTEM__" ]; then
|
||||
cat << EOF > "${BUILDDIR}/setup_mpich"
|
||||
prepend_path PATH "$pkg_install_dir/bin"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue