qmake: use default libdirs to search for prl libs
Default libdirs are never added to the modules' LIBS and if Qt was configured to use one of the default libdirs, module might end up without any path to search for its prl files. Add default libdirs to the search path similar as it's done in unix/makefile generator. Fixes: QTBUG-72855 Change-Id: I43c5bae0d54ba9427ab0ad3eab61ba0c4e2cbde8 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
0e96b5fe48
commit
2327944d24
@ -84,6 +84,8 @@ Win32MakefileGenerator::findLibraries(bool linkPrl, bool mergeLflags)
|
|||||||
if (impexts.isEmpty())
|
if (impexts.isEmpty())
|
||||||
impexts = project->values("QMAKE_EXTENSION_STATICLIB");
|
impexts = project->values("QMAKE_EXTENSION_STATICLIB");
|
||||||
QList<QMakeLocalFileName> dirs;
|
QList<QMakeLocalFileName> dirs;
|
||||||
|
for (const ProString &dlib : project->values("QMAKE_DEFAULT_LIBDIRS"))
|
||||||
|
dirs.append(QMakeLocalFileName(dlib.toQString()));
|
||||||
static const char * const lflags[] = { "LIBS", "LIBS_PRIVATE",
|
static const char * const lflags[] = { "LIBS", "LIBS_PRIVATE",
|
||||||
"QMAKE_LIBS", "QMAKE_LIBS_PRIVATE", nullptr };
|
"QMAKE_LIBS", "QMAKE_LIBS_PRIVATE", nullptr };
|
||||||
for (int i = 0; lflags[i]; i++) {
|
for (int i = 0; lflags[i]; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user