New package "charm" for the Charm++ parallel programming framework (#1766)
This commit is contained in:

committed by
Todd Gamblin

parent
025b779a30
commit
7ad6c35627
19
var/spack/repos/builtin/packages/charm/mpi.patch
Normal file
19
var/spack/repos/builtin/packages/charm/mpi.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
--- 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
|
Reference in New Issue
Block a user