def METHOD_NAME(self, module, dependent_spec):
    if "platform=cray" in self.spec:
        self.spec.mpicc = spack_cc
        self.spec.mpicxx = spack_cxx
        self.spec.mpifc = spack_fc
        self.spec.mpif77 = spack_f77
    else:
        self.spec.mpicc = join_path(self.prefix.bin, "mpicc")
        self.spec.mpicxx = join_path(self.prefix.bin, "mpic++")
        self.spec.mpifc = join_path(self.prefix.bin, "mpif90")
        self.spec.mpif77 = join_path(self.prefix.bin, "mpif77")
    self.spec.mpicxx_shared_libs = [
        join_path(self.prefix.lib, "libmpicxx.{0}".format(dso_suffix)),
        join_path(self.prefix.lib, "libmpi.{0}".format(dso_suffix)),
    ]