def get_link_deps_mapping(self, prefix, environment):
    result = {}
    mappings = self.get_transitive_link_deps_mapping(prefix, environment)
    old = get_target_macos_dylib_install_name(self)
    if (old not in mappings):
        fname = self.get_filename()
        (outdirs, _) = self.get_install_dir(self.environment)
        new = os.path.join(prefix, outdirs[0], fname)
        result.update({old: new})
    mappings.update(result)
    return mappings
def get_link_deps_mapping(self, prefix, environment):
    result = {}
    mappings = self.get_transitive_link_deps_mapping(prefix, environment)
    old = get_target_macos_dylib_install_name(self)
    if (old not in mappings):
        fname = self.get_filename()
        (outdirs, _) = self.get_install_dir(self.environment)
        new = os.path.join(prefix, outdirs[0], fname)
        result.update({old: new})
    mappings.update(result)
    return mappings