Skip to content

Commit e57e2cc

Browse files
committed
add openmpi configure option
1 parent b46c726 commit e57e2cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

toolchain/scripts/stage1/install_openmpi.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ case "${with_openmpi}" in
7979
./configure CFLAGS="${CFLAGS}" \
8080
--prefix=${pkg_install_dir} \
8181
--libdir="${pkg_install_dir}/lib" \
82+
--with-libevent=internal \
8283
${EXTRA_CONFIGURE_FLAGS} \
8384
> configure.log 2>&1 || tail -n ${LOG_LINES} configure.log
8485
make -j $(get_nprocs) > make.log 2>&1 || tail -n ${LOG_LINES} make.log
@@ -106,8 +107,9 @@ case "${with_openmpi}" in
106107
check_command mpifort "openmpi" && MPIFC="$(command -v mpifort)" || exit 1
107108
MPIFORT="${MPIFC}"
108109
MPIF77="${MPIFC}"
109-
# OPENMPI_CFLAGS="$(mpicxx --showme:compile)"
110-
# OPENMPI_LDFLAGS="$(mpicxx --showme:link)"
110+
# libraries and linker flags for C/C++-based MPI codepaths, pull them in at this point.
111+
OPENMPI_CFLAGS="$(mpicxx --showme:compile)"
112+
OPENMPI_LDFLAGS="$(mpicxx --showme:link)"
111113
;;
112114
__DONTUSE__)
113115
# Nothing to do

0 commit comments

Comments
 (0)