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