diff options
author | Greg Ward <gward@python.net> | 2000-01-09 22:41:02 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-01-09 22:41:02 (GMT) |
commit | 5baf1c211133ac98c04dc308b6a441ecd53b6c06 (patch) | |
tree | 1191bca0b6dd3f3e0333675603cc34d6a7f6e841 /Lib/distutils/ccompiler.py | |
parent | e9436da6863e18f710e0908cb8d4be4b571a172d (diff) | |
download | cpython-5baf1c211133ac98c04dc308b6a441ecd53b6c06.zip cpython-5baf1c211133ac98c04dc308b6a441ecd53b6c06.tar.gz cpython-5baf1c211133ac98c04dc308b6a441ecd53b6c06.tar.bz2 |
Removed a bunch of irrelevant parameters from 'link_static_lib()' signature.
Added 'link_executable()' signature.
Diffstat (limited to 'Lib/distutils/ccompiler.py')
-rw-r--r-- | Lib/distutils/ccompiler.py | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py index 8c2ddf7..036cbe9 100644 --- a/Lib/distutils/ccompiler.py +++ b/Lib/distutils/ccompiler.py @@ -292,17 +292,10 @@ class CCompiler: pass - # XXX this is kind of useless without 'link_binary()' or - # 'link_executable()' or something -- or maybe 'link_static_lib()' - # should not exist at all, and we just have 'link_binary()'? def link_static_lib (self, objects, output_libname, - output_dir=None, - libraries=None, - library_dirs=None, - extra_preargs=None, - extra_postargs=None): + output_dir=None): """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 @@ -368,6 +361,23 @@ class CCompiler: pass + def link_executable (self, + objects, + output_progname, + output_dir=None, + libraries=None, + library_dirs=None, + 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_static_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.""" + pass + + + # -- Filename mangling methods ------------------------------------- # General principle for the filename-mangling methods: by default, |