From b6ff463b8a5ce1cf040c0f112d20a892a03911c0 Mon Sep 17 00:00:00 2001 From: Fabian Ducry Date: Tue, 10 Aug 2021 07:13:08 +0200 Subject: [PATCH] Add -lfftw3_mpi conditionally to the arch files --- tools/toolchain/scripts/stage3/install_fftw.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/toolchain/scripts/stage3/install_fftw.sh b/tools/toolchain/scripts/stage3/install_fftw.sh index 535abf4f5d..f2a9dfb5cd 100755 --- a/tools/toolchain/scripts/stage3/install_fftw.sh +++ b/tools/toolchain/scripts/stage3/install_fftw.sh @@ -83,7 +83,7 @@ case "$with_fftw" in ;; esac if [ "$with_fftw" != "__DONTUSE__" ]; then - [ "$MPI_MODE" != "no" ] && FFTW_LIBS="-lfftw3_mpi " + [ "$MPI_MODE" != "no" ] && FFTW_LIBS="IF_MPI(-lfftw3_mpi|) " FFTW_LIBS+="-lfftw3 -lfftw3_omp" if [ "$with_fftw" != "__SYSTEM__" ]; then cat << EOF > "${BUILDDIR}/setup_fftw"