def UnixCCompiler_create_static_lib(self, objects, output_libname,<EOL>output_dir=None, debug=<NUM_LIT:0>, target_lang=None):
objects, output_dir = self._fix_object_args(objects, output_dir)<EOL>output_filename =self.library_filename(output_libname, output_dir=output_dir)<EOL>if self._need_link(objects, output_filename):<EOL><INDENT>try:<EOL><INDENT>os.unlink(output_filename)<EOL><DEDENT>except (IOError, OSError):<EOL><INDENT>pass<EOL><DEDENT>self.mkpath(os.path.dirname(output_filename))<EOL>tmp_objects = objects + self.objects<EOL>while tmp_objects:<EOL><INDENT>objects = tmp_objects[:<NUM_LIT:50>]<EOL>tmp_objects = tmp_objects[<NUM_LIT:50>:]<EOL>display = '<STR_LIT>' % (<EOL>os.path.basename(self.archiver[<NUM_LIT:0>]),<EOL>len(objects), output_filename)<EOL>self.spawn(self.archiver + [output_filename] + objects,<EOL>display = display)<EOL><DEDENT>if self.ranlib:<EOL><INDENT>display = '<STR_LIT>' % (os.path.basename(self.ranlib[<NUM_LIT:0>]),<EOL>output_filename)<EOL>try:<EOL><INDENT>self.spawn(self.ranlib + [output_filename],<EOL>display = display)<EOL><DEDENT>except DistutilsExecError:<EOL><INDENT>msg = str(get_exception())<EOL>raise LibError(msg)<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>log.debug("<STR_LIT>", output_filename)<EOL><DEDENT>return<EOL>
Build a static library in a separate sub-process.

Parameters
----------
objects : list or tuple of str
    List of paths to object files used to build the static library.
output_libname : str
    The library name as an absolute or relative (if `output_dir` is used)
    path.
output_dir : str, optional
    The path to the output directory. Default is None, in which case
    the ``output_dir`` attribute of the UnixCCompiler instance.
debug : bool, optional
    This parameter is not used.
target_lang : str, optional
    This parameter is not used.

Returns
-------
None