summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/ccompiler.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-03-18 15:19:51 (GMT)
committerGreg Ward <gward@python.net>2000-03-18 15:19:51 (GMT)
commitd03f88a38f9fe56f1981bae50c007d4b21c99001 (patch)
tree7100cce65bb3e8f421391de6b4ac8002398c2a5b /Lib/distutils/ccompiler.py
parent295765630acaacaebec1f13988b1f3277287b4fc (diff)
downloadcpython-d03f88a38f9fe56f1981bae50c007d4b21c99001.zip
cpython-d03f88a38f9fe56f1981bae50c007d4b21c99001.tar.gz
cpython-d03f88a38f9fe56f1981bae50c007d4b21c99001.tar.bz2
Changed to pay attention to the 'runtime_library_dirs' list (= 'rpath'
option in the 'build_ext' command): * in ccompiler.py: 'gen_lib_options()' now takes 'runtime_library_dirs' parameter * in unixccompiler.py and msvccompiler.py: now pass 'self.runtime_library_dirs' to 'gen_lib_options()', and define 'runtime_library_dir_option()' (although in msvccompiler.py it blows up with a DistutilsPlatformError right now!)
Diffstat (limited to 'Lib/distutils/ccompiler.py')
-rw-r--r--Lib/distutils/ccompiler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py
index 46dabad..4a8c1d3 100644
--- a/Lib/distutils/ccompiler.py
+++ b/Lib/distutils/ccompiler.py
@@ -770,7 +770,7 @@ def gen_preprocess_options (macros, include_dirs):
# gen_preprocess_options ()
-def gen_lib_options (compiler, library_dirs, libraries):
+def gen_lib_options (compiler, library_dirs, runtime_library_dirs, libraries):
"""Generate linker options for searching library directories and
linking with specific libraries. 'libraries' and 'library_dirs'
are, respectively, lists of library names (not filenames!) and
@@ -783,6 +783,9 @@ def gen_lib_options (compiler, library_dirs, libraries):
for dir in library_dirs:
lib_opts.append (compiler.library_dir_option (dir))
+ for dir in runtime_library_dirs:
+ lib_opts.append (compiler.runtime_library_dir_option (dir))
+
# XXX it's important that we *not* remove redundant library mentions!
# sometimes you really do have to say "-lfoo -lbar -lfoo" in order to
# resolve all symbols. I just hope we never have to say "-lfoo obj.o