spack/var/spack/repos/builtin/packages/charmpp/mpi.patch
Abhinav Bhatele 055b0a442c Charmpp: rename charm to charmpp according to ++ conventions (#9216)
* Charmpp: rename charm to charmpp according to ++ conventions
* modify packages that depend on charmpp
2018-09-14 17:01:07 -07:00

20 lines
613 B
Diff

--- old/src/scripts/configure
+++ new/src/scripts/configure
@@ -3293,10 +3293,16 @@
test_link "whether -lmpi" "ok" "no" "-lmpi"
if test $pass -eq 1
then
add_flag CMK_SYSLIBS='"$CMK_SYSLIBS -lmpi"' "mpi lib"
else
+ test_link "whether -lmpi -lmpi_cxx" "ok" "no" "-lmpi -lmpi_cxx"
+ if test $pass -eq 1
+ then
+ add_flag CMK_SYSLIBS='"$CMK_SYSLIBS -lmpi -lmpi_cxx"' "mpi lib"
+ else
echo "Error: can not find mpi library"
test_finish 1
+ fi
fi
fi
else