Skip to content

Commit 005dbb2

Browse files
committed
on MacOSX/Darwin, use ranlib when building static libs.
1 parent e28ee75 commit 005dbb2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎Lib/distutils/unixccompiler.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
__revision__ = "$Id$"
1919

20-
import string, re, os
20+
import string, re, os, sys
2121
from types import *
2222
from copy import copy
2323
from distutils import sysconfig
@@ -62,6 +62,9 @@ class UnixCCompiler (CCompiler):
6262
'ranlib' : None,
6363
}
6464

65+
if sys.platform[:6] == "darwin":
66+
executables['ranlib'] = ["ranlib"]
67+
6568
# Needed for the filename generation methods provided by the base
6669
# class, CCompiler. NB. whoever instantiates/uses a particular
6770
# UnixCCompiler instance should set 'shared_lib_ext' -- we set a

0 commit comments

Comments
 (0)