aboutsummaryrefslogtreecommitdiff
path: root/dependencies.py
diff options
context:
space:
mode:
Diffstat (limited to 'dependencies.py')
-rw-r--r--dependencies.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/dependencies.py b/dependencies.py
index d4db051..8599c66 100644
--- a/dependencies.py
+++ b/dependencies.py
@@ -598,11 +598,15 @@ class Qt5Dependency(Dependency):
incdir = qvars['QT_INSTALL_HEADERS']
self.cargs.append('-I' + incdir)
libdir = qvars['QT_INSTALL_LIBS']
+ bindir = qvars['QT_INSTALL_BINS']
#self.largs.append('-L' + libdir)
for module in mods:
mincdir = os.path.join(incdir, 'Qt' + module)
- libfile = os.path.join(libdir, 'Qt5' + module + '.lib')
self.cargs.append('-I' + mincdir)
+ libfile = os.path.join(libdir, 'Qt5' + module + '.lib')
+ if not os.path.isfile(libfile):
+ # MinGW links directly to .dll, not to .lib.
+ libfile = os.path.join(bindir, 'Qt5' + module + '.dll')
self.largs.append(libfile)
self.is_found = True