Use an appropriate mingw-ar if none was specified
This commit is contained in:
parent
3bcd8b6615
commit
ccd6b3c201
1 changed files with 2 additions and 0 deletions
2
wscript
2
wscript
|
@ -98,6 +98,8 @@ def configure (conf):
|
||||||
|
|
||||||
# This is specific to cross compiling with mingw
|
# This is specific to cross compiling with mingw
|
||||||
if is_mingw (conf.env) and Options.platform != 'win32':
|
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'
|
Options.platform = 'win32'
|
||||||
# Make sure we don't have -fPIC in the CCFLAGS
|
# Make sure we don't have -fPIC in the CCFLAGS
|
||||||
conf.env["shlib_CCFLAGS"] = []
|
conf.env["shlib_CCFLAGS"] = []
|
||||||
|
|
Loading…
Reference in a new issue