From 0fa3d6caf56808e0981a3e7f39c679e132112c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Mon, 11 Oct 2021 16:27:00 +0200 Subject: [PATCH] Toolchain: Link libmpifort explicitly --- tools/toolchain/scripts/stage1/install_mpich.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/toolchain/scripts/stage1/install_mpich.sh b/tools/toolchain/scripts/stage1/install_mpich.sh index b1d0617289..b9a4973f69 100755 --- a/tools/toolchain/scripts/stage1/install_mpich.sh +++ b/tools/toolchain/scripts/stage1/install_mpich.sh @@ -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"