mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
on MacOSX/Darwin, use ranlib when building static libs.
This commit is contained in:
parent
e28ee754b0
commit
005dbb219e
1 changed files with 4 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ the "typical" Unix-style command-line C compiler:
|
||||||
|
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
import string, re, os
|
import string, re, os, sys
|
||||||
from types import *
|
from types import *
|
||||||
from copy import copy
|
from copy import copy
|
||||||
from distutils import sysconfig
|
from distutils import sysconfig
|
||||||
|
|
@ -62,6 +62,9 @@ class UnixCCompiler (CCompiler):
|
||||||
'ranlib' : None,
|
'ranlib' : None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if sys.platform[:6] == "darwin":
|
||||||
|
executables['ranlib'] = ["ranlib"]
|
||||||
|
|
||||||
# Needed for the filename generation methods provided by the base
|
# Needed for the filename generation methods provided by the base
|
||||||
# class, CCompiler. NB. whoever instantiates/uses a particular
|
# class, CCompiler. NB. whoever instantiates/uses a particular
|
||||||
# UnixCCompiler instance should set 'shared_lib_ext' -- we set a
|
# UnixCCompiler instance should set 'shared_lib_ext' -- we set a
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue