From ccd6b3c2010083eda281ac3dffdc57879d6a3b4f Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 16 Jun 2009 01:47:03 +0200 Subject: [PATCH] Use an appropriate mingw-ar if none was specified --- wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wscript b/wscript index 5dce333b..34d20c52 100644 --- a/wscript +++ b/wscript @@ -98,6 +98,8 @@ def configure (conf): # This is specific to cross compiling with mingw if is_mingw (conf.env) and Options.platform != 'win32': + if not 'AR' in os.environ and not 'RANLIB' in os.environ: + conf.env['AR'] = os.environ['CC'][:-3] + 'ar' Options.platform = 'win32' # Make sure we don't have -fPIC in the CCFLAGS conf.env["shlib_CCFLAGS"] = [] -- 2.39.5