summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/ccompiler.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-05-20 13:23:21 (GMT)
committerGreg Ward <gward@python.net>2000-05-20 13:23:21 (GMT)
commit5299b6afc568ac19917b93032295ad8bfbdfc711 (patch)
tree179b6618204f3c99b17e17d63aa3e01e9eebe0b1 /Lib/distutils/ccompiler.py
parent974f70d97b2bf0fd1828d5c08bc638e25e27aca5 (diff)
downloadcpython-5299b6afc568ac19917b93032295ad8bfbdfc711.zip
cpython-5299b6afc568ac19917b93032295ad8bfbdfc711.tar.gz
cpython-5299b6afc568ac19917b93032295ad8bfbdfc711.tar.bz2
Added support for the 'export_symbols' parameter to 'link_shared_object()'
and 'link_shared_lib()'. In MSVCCompiler, this is meaningful: it adds /EXPORT: options to the linker command line. In UnixCCompiler, it is ignored.
Diffstat (limited to 'Lib/distutils/ccompiler.py')
-rw-r--r--Lib/distutils/ccompiler.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py
index ffad294..51f5ae0 100644
--- a/Lib/distutils/ccompiler.py
+++ b/Lib/distutils/ccompiler.py
@@ -493,6 +493,7 @@ class CCompiler:
libraries=None,
library_dirs=None,
runtime_library_dirs=None,
+ export_symbols=None,
debug=0,
extra_preargs=None,
extra_postargs=None):
@@ -515,7 +516,13 @@ class CCompiler:
search for libraries that were specified as bare library names
(ie. no directory component). These are on top of the system
default and those supplied to 'add_library_dir()' and/or
- 'set_library_dirs()'.
+ 'set_library_dirs()'. 'runtime_library_dirs' is a list of
+ directories that will be embedded into the shared library and
+ used to search for other shared libraries that *it* depends on
+ at run-time. (This may only be relevant on Unix.)
+
+ 'export_symbols' is a list of symbols that the shared library
+ will export. (This appears to be relevant only on Windows.)
'debug' is as for 'compile()' and 'create_static_lib()', with the
slight distinction that it actually matters on most platforms
@@ -536,6 +543,7 @@ class CCompiler:
libraries=None,
library_dirs=None,
runtime_library_dirs=None,
+ export_symbols=None,
debug=0,
extra_preargs=None,
extra_postargs=None):