diff --git a/qmake/generators/win32/winmakefile.cpp b/qmake/generators/win32/winmakefile.cpp index f96e4635301..cd4c4012bdc 100644 --- a/qmake/generators/win32/winmakefile.cpp +++ b/qmake/generators/win32/winmakefile.cpp @@ -156,7 +156,7 @@ Win32MakefileGenerator::findLibraries() (*it) = out; } else if(!exists(Option::fixPathToLocalOS(opt))) { QList lib_dirs; - QString file = opt; + QString file = Option::fixPathToTargetOS(opt); int slsh = file.lastIndexOf(Option::dir_sep); if(slsh != -1) { lib_dirs.append(QMakeLocalFileName(file.left(slsh+1)));