def METHOD_NAME(self, spec, prefix):
    with working_dir(self.build_directory):
        # Override the hardcoded prefix for 'cray-xpmem.conf'
        make(
            "ldsoconfdir={0}".format(self.spec.prefix.etc.join("ld.so.conf.d")),
            *self.install_targets,
        )