Import library files need to be installed into lib/ on Windows

Fix #1860.
This commit is contained in:
Jan Niklas Hasse 2017-05-05 10:38:50 +02:00 committed by ita1024
parent 28cb614069
commit 7142640257
1 changed files with 2 additions and 0 deletions

View File

@ -1156,6 +1156,8 @@ def get_cc_version(conf, cc, gcc=False, icc=False, clang=False):
conf.env.DEST_BINFMT = 'elf'
elif isD('__WINNT__') or isD('__CYGWIN__') or isD('_WIN32'):
conf.env.DEST_BINFMT = 'pe'
if not conf.env.IMPLIBDIR:
conf.env.IMPLIBDIR = conf.env.LIBDIR # for .lib or .dll.a files
conf.env.LIBDIR = conf.env.BINDIR
elif isD('__APPLE__'):
conf.env.DEST_BINFMT = 'mac-o'