]> spindle.queued.net Git - midori/commitdiff
Use an appropriate mingw-ar if none was specified
authorChristian Dywan <christian@twotoasts.de>
Mon, 15 Jun 2009 23:47:03 +0000 (01:47 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 15 Jun 2009 23:47:45 +0000 (01:47 +0200)
wscript

diff --git a/wscript b/wscript
index 5dce333b09ace8d3a07a11a59f899c6bda45ceac..34d20c52be67e9473971423df0ac7de1689ca030 100644 (file)
--- 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"] = []