mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Added support for single-thread boost
This commit is contained in:
parent
c00d83dee9
commit
b94ecb2383
2 changed files with 20 additions and 0 deletions
10
configure
vendored
10
configure
vendored
|
@ -407,6 +407,16 @@ public:
|
||||||
name = result.first().mid(3);
|
name = result.first().mid(3);
|
||||||
// Remove .so
|
// Remove .so
|
||||||
name.chop(3);
|
name.chop(3);
|
||||||
|
} else {
|
||||||
|
// Fall back to non -mt boost lib
|
||||||
|
filters.clear();
|
||||||
|
filters << "libboost_"+lib+"*.so";
|
||||||
|
result = libDir.entryList(filters, QDir::Files);
|
||||||
|
if(!result.empty()) {
|
||||||
|
name = result.first().mid(3);
|
||||||
|
// Remove .so
|
||||||
|
name.chop(3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,16 @@ public:
|
||||||
name = result.first().mid(3);
|
name = result.first().mid(3);
|
||||||
// Remove .so
|
// Remove .so
|
||||||
name.chop(3);
|
name.chop(3);
|
||||||
|
} else {
|
||||||
|
// Fall back to non -mt boost lib
|
||||||
|
filters.clear();
|
||||||
|
filters << "libboost_"+lib+"*.so";
|
||||||
|
result = libDir.entryList(filters, QDir::Files);
|
||||||
|
if(!result.empty()) {
|
||||||
|
name = result.first().mid(3);
|
||||||
|
// Remove .so
|
||||||
|
name.chop(3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue