From: Christian Dywan Date: Mon, 15 Jun 2009 23:47:03 +0000 (+0200) Subject: Use an appropriate mingw-ar if none was specified X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccd6b3c2010083eda281ac3dffdc57879d6a3b4f;p=midori Use an appropriate mingw-ar if none was specified --- 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"] = []