diff options
author | Just van Rossum <just@letterror.com> | 2002-02-11 15:31:50 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2002-02-11 15:31:50 (GMT) |
commit | 005dbb219eefb9907a4fb95d06d4e7f97d09e3a1 (patch) | |
tree | 1efe8edd876cb7762d929b4b01797a9955176035 | |
parent | e28ee754b0749b2c4d1d6eb5f040dd3c8b01154a (diff) | |
download | cpython-005dbb219eefb9907a4fb95d06d4e7f97d09e3a1.zip cpython-005dbb219eefb9907a4fb95d06d4e7f97d09e3a1.tar.gz cpython-005dbb219eefb9907a4fb95d06d4e7f97d09e3a1.tar.bz2 |
on MacOSX/Darwin, use ranlib when building static libs.
-rw-r--r-- | Lib/distutils/unixccompiler.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index 356587d..7e63c56 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -17,7 +17,7 @@ the "typical" Unix-style command-line C compiler: __revision__ = "$Id$" -import string, re, os +import string, re, os, sys from types import * from copy import copy from distutils import sysconfig @@ -62,6 +62,9 @@ class UnixCCompiler (CCompiler): 'ranlib' : None, } + if sys.platform[:6] == "darwin": + executables['ranlib'] = ["ranlib"] + # Needed for the filename generation methods provided by the base # class, CCompiler. NB. whoever instantiates/uses a particular # UnixCCompiler instance should set 'shared_lib_ext' -- we set a |