Use an appropriate mingw-ar if none was specified

This commit is contained in:
Christian Dywan 2009-06-16 01:47:03 +02:00
parent 3bcd8b6615
commit ccd6b3c201

View file

@ -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"] = []