Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
970b9e96
Commit
970b9e96
authored
Mar 10, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed 'link_static_lib() to 'create_static_lib()'.
parent
13a17ccd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
18 deletions
+19
-18
ccompiler.py
ccompiler.py
+13
-12
unixccompiler.py
unixccompiler.py
+6
-6
No files found.
ccompiler.py
View file @
970b9e96
...
...
@@ -449,11 +449,11 @@ class CCompiler:
pass
def
link
_static_lib
(
self
,
objects
,
output_libname
,
output_dir
=
None
,
debug
=
0
):
def
create
_static_lib
(
self
,
objects
,
output_libname
,
output_dir
=
None
,
debug
=
0
):
"""Link a bunch of stuff together to create a static library
file. The "bunch of stuff" consists of the list of object
files supplied as 'objects', the extra object files supplied
...
...
@@ -484,10 +484,11 @@ class CCompiler:
extra_preargs
=
None
,
extra_postargs
=
None
):
"""Link a bunch of stuff together to create a shared library
file. Has the same effect as 'link_static_lib()' except
that the filename inferred from 'output_libname' will most
likely be different, and the type of file generated will
almost certainly be different
file. Similar semantics to 'create_static_lib()', with the
addition of other libraries to link against and directories to
search for them. Also, of course, the type and name of
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
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
'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
(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).
'extra_preargs' and 'extra_postargs' are as for 'compile()'
...
...
@@ -543,7 +544,7 @@ class CCompiler:
extra_preargs
=
None
,
extra_postargs
=
None
):
"""Link a bunch of stuff together to create a binary executable
file. The "bunch of stuff" is as for 'link_s
tatic
_lib()'.
file. The "bunch of stuff" is as for 'link_s
hared
_lib()'.
'output_progname' should be the base name of the executable
program--e.g. on Unix the same as the output filename, but
on DOS/Windows ".exe" will be appended."""
...
...
unixccompiler.py
View file @
970b9e96
...
...
@@ -140,11 +140,11 @@ class UnixCCompiler (CCompiler):
# compile ()
def
link
_static_lib
(
self
,
objects
,
output_libname
,
output_dir
=
None
,
debug
=
0
):
def
create
_static_lib
(
self
,
objects
,
output_libname
,
output_dir
=
None
,
debug
=
0
):
(
objects
,
output_dir
)
=
self
.
_fix_link_args
(
objects
,
output_dir
,
takes_libs
=
0
)
...
...
@@ -160,7 +160,7 @@ class UnixCCompiler (CCompiler):
else
:
self
.
announce
(
"skipping %s (up-to-date)"
%
output_filename
)
#
link
_static_lib ()
#
create
_static_lib ()
def
link_shared_lib
(
self
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment