From b9fdf4e26b568e3030dff8dbd12108b53b469213 Mon Sep 17 00:00:00 2001 From: Matthias Krack Date: Fri, 24 Feb 2023 09:19:49 +0100 Subject: [PATCH] Fix for libint build with Intel oneAPI --- tools/toolchain/scripts/stage3/install_libint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/toolchain/scripts/stage3/install_libint.sh b/tools/toolchain/scripts/stage3/install_libint.sh index 42aaf66e41..f997e92f0f 100755 --- a/tools/toolchain/scripts/stage3/install_libint.sh +++ b/tools/toolchain/scripts/stage3/install_libint.sh @@ -84,7 +84,7 @@ case "$with_libint" in if [ "${MPI_MODE}" = "intelmpi" ]; then # Fix bug in makefile for Fortran module - sed -i "s/\$(CXX) \$(CXXFLAGS)/\$(FC) \$(FCFLAGS)/g" fortran/Makefile + sed -i -e "s/\$(CXX) \$(CXXFLAGS)/\$(FC) \$(FCFLAGS)/g" -e "s/\$(FCLIBS) -o/\$(FCLIBS) -lstdc++ -o/" fortran/Makefile fi make -j $(get_nprocs) > make.log 2>&1 || tail -n ${LOG_LINES} make.log