Renamed 'link_static_lib() to 'create_static_lib()'.
This commit is contained in:
parent
329e4be05a
commit
036c805958
|
@ -449,7 +449,7 @@ class CCompiler:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def link_static_lib (self,
|
def create_static_lib (self,
|
||||||
objects,
|
objects,
|
||||||
output_libname,
|
output_libname,
|
||||||
output_dir=None,
|
output_dir=None,
|
||||||
|
@ -484,10 +484,11 @@ class CCompiler:
|
||||||
extra_preargs=None,
|
extra_preargs=None,
|
||||||
extra_postargs=None):
|
extra_postargs=None):
|
||||||
"""Link a bunch of stuff together to create a shared library
|
"""Link a bunch of stuff together to create a shared library
|
||||||
file. Has the same effect as 'link_static_lib()' except
|
file. Similar semantics to 'create_static_lib()', with the
|
||||||
that the filename inferred from 'output_libname' will most
|
addition of other libraries to link against and directories to
|
||||||
likely be different, and the type of file generated will
|
search for them. Also, of course, the type and name of
|
||||||
almost certainly be different
|
the generated file will almost certainly be different, as will
|
||||||
|
the program used to create it.
|
||||||
|
|
||||||
'libraries' is a list of libraries to link against. These are
|
'libraries' is a list of libraries to link against. These are
|
||||||
library names, not filenames, since they're translated into
|
library names, not filenames, since they're translated into
|
||||||
|
@ -503,9 +504,9 @@ class CCompiler:
|
||||||
default and those supplied to 'add_library_dir()' and/or
|
default and those supplied to 'add_library_dir()' and/or
|
||||||
'set_library_dirs()'.
|
'set_library_dirs()'.
|
||||||
|
|
||||||
'debug' is as for 'compile()' and 'link_static_lib()', with the
|
'debug' is as for 'compile()' and 'create_static_lib()', with the
|
||||||
slight distinction that it actually matters on most platforms
|
slight distinction that it actually matters on most platforms
|
||||||
(as opposed to 'link_static_lib()', which includes a 'debug'
|
(as opposed to 'create_static_lib()', which includes a 'debug'
|
||||||
flag mostly for form's sake).
|
flag mostly for form's sake).
|
||||||
|
|
||||||
'extra_preargs' and 'extra_postargs' are as for 'compile()'
|
'extra_preargs' and 'extra_postargs' are as for 'compile()'
|
||||||
|
@ -543,7 +544,7 @@ class CCompiler:
|
||||||
extra_preargs=None,
|
extra_preargs=None,
|
||||||
extra_postargs=None):
|
extra_postargs=None):
|
||||||
"""Link a bunch of stuff together to create a binary executable
|
"""Link a bunch of stuff together to create a binary executable
|
||||||
file. The "bunch of stuff" is as for 'link_static_lib()'.
|
file. The "bunch of stuff" is as for 'link_shared_lib()'.
|
||||||
'output_progname' should be the base name of the executable
|
'output_progname' should be the base name of the executable
|
||||||
program--e.g. on Unix the same as the output filename, but
|
program--e.g. on Unix the same as the output filename, but
|
||||||
on DOS/Windows ".exe" will be appended."""
|
on DOS/Windows ".exe" will be appended."""
|
||||||
|
|
|
@ -140,7 +140,7 @@ class UnixCCompiler (CCompiler):
|
||||||
# compile ()
|
# compile ()
|
||||||
|
|
||||||
|
|
||||||
def link_static_lib (self,
|
def create_static_lib (self,
|
||||||
objects,
|
objects,
|
||||||
output_libname,
|
output_libname,
|
||||||
output_dir=None,
|
output_dir=None,
|
||||||
|
@ -160,7 +160,7 @@ class UnixCCompiler (CCompiler):
|
||||||
else:
|
else:
|
||||||
self.announce ("skipping %s (up-to-date)" % output_filename)
|
self.announce ("skipping %s (up-to-date)" % output_filename)
|
||||||
|
|
||||||
# link_static_lib ()
|
# create_static_lib ()
|
||||||
|
|
||||||
|
|
||||||
def link_shared_lib (self,
|
def link_shared_lib (self,
|
||||||
|
|
Loading…
Reference in New Issue