]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport a checkin of jvr's:
authorMichael W. Hudson <mwh@python.net>
Sun, 17 Mar 2002 19:47:39 +0000 (19:47 +0000)
committerMichael W. Hudson <mwh@python.net>
Sun, 17 Mar 2002 19:47:39 +0000 (19:47 +0000)
on MacOSX/Darwin, use ranlib when building static libs.

I hope this belongs on the branch...

Lib/distutils/unixccompiler.py

index 356587d6003a6640751dc3e1f6da7fc7c606fb2e..7e63c56afe54375a74a1bdaa7f71bfa8ae5b099a 100644 (file)
@@ -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