Fix static Qt detection.

We want the absolute path of the file info, not the file name relative
to the pwd.

Reviewed-by: Tobias Hunger
This commit is contained in:
con
2011-03-02 15:59:30 +01:00
parent 183a7be741
commit 4de8eadaac

View File

@@ -1606,7 +1606,7 @@ QString QtVersion::qtCorePath() const
|| file.startsWith(QLatin1String("QtCore"))) {
// Only handle static libs if we can not find dynamic ones:
if (file.endsWith(".a"))
staticLibs.append(file);
staticLibs.append(info);
else if (file.endsWith(QLatin1String(".dll"))
|| file.endsWith(QString::fromLatin1(".so.") + qtVersionString()))
return info.absoluteFilePath();