findLibraries(): don't remove -L options for system paths
the paths may be explicitly added before some other paths, so it would be wrong to remove them. Change-Id: I68ae93fd307afe14a07a0f24de952783950b5bea Reviewed-by: Holger Freyther <holger+qt@freyther.de> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
parent
20b7f028cf
commit
e185f343e4
@ -478,7 +478,8 @@ UnixMakefileGenerator::findLibraries()
|
|||||||
if(opt.startsWith("-L")) {
|
if(opt.startsWith("-L")) {
|
||||||
QString lib = opt.mid(2);
|
QString lib = opt.mid(2);
|
||||||
QMakeLocalFileName f(lib);
|
QMakeLocalFileName f(lib);
|
||||||
if (libdirs.contains(f)) {
|
int idx = libdirs.indexOf(f);
|
||||||
|
if (idx >= 0 && idx < libidx) {
|
||||||
it = l.erase(it);
|
it = l.erase(it);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user