def replace_static_libraries(self, exclusions=None):
if "<STR_LIT>" not in self.libraries:<EOL><INDENT>self.libraries.append("<STR_LIT>")<EOL><DEDENT>if exclusions is None:<EOL><INDENT>exclusions = []<EOL><DEDENT>for library_name in set(self.libraries) - set(exclusions):<EOL><INDENT>static_lib = find_static_library(library_name, self.library_dirs)<EOL>if static_lib:<EOL><INDENT>self.libraries.remove(library_name)<EOL>self.extra_objects.append(static_lib)<EOL><DEDENT><DEDENT>
Replaces references to libraries with full paths to their static
        versions if the static version is to be found on the library path.