From 18f69f8e27019402e320129b48aa8c018a9bdec6 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Sun, 17 Mar 2002 19:47:39 +0000 Subject: Backport a checkin of jvr's: on MacOSX/Darwin, use ranlib when building static libs. I hope this belongs on the branch... --- Lib/distutils/unixccompiler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v0.12