mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdecore: .sl libraries are not supported
for reference:
ebe43fe053
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
98263c361d
commit
f8a872e6b5
1 changed files with 3 additions and 5 deletions
|
@ -51,11 +51,9 @@ static inline QString makeLibName( const QString &libname )
|
|||
if (pos < 0)
|
||||
pos = 0;
|
||||
if (libname.indexOf(QLatin1Char('.'), pos) < 0) {
|
||||
const char* const extList[] = { ".so", ".sl" };
|
||||
for (uint i = 0; i < sizeof(extList) / sizeof(*extList); ++i) {
|
||||
const QString lib = libname + QString::fromLatin1(extList[i]);
|
||||
if (QLibrary::isLibrary(lib))
|
||||
return lib;
|
||||
const QString lib = libname + QLatin1String(".so");
|
||||
if (QLibrary::isLibrary(lib)) {
|
||||
return lib;
|
||||
}
|
||||
}
|
||||
return libname;
|
||||
|
|
Loading…
Add table
Reference in a new issue