mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Link against boost and ssl to fix issues with gold linker
This commit is contained in:
parent
9d2f2230ee
commit
98d0c00f85
3 changed files with 18 additions and 6 deletions
10
configure
vendored
10
configure
vendored
|
@ -359,12 +359,18 @@ public:
|
||||||
return false;
|
return false;
|
||||||
for(int n = 0; n < incs.count(); ++n)
|
for(int n = 0; n < incs.count(); ++n)
|
||||||
conf->addIncludePath(incs[n]);
|
conf->addIncludePath(incs[n]);
|
||||||
if(!libs.isEmpty())
|
//if(!libs.isEmpty())
|
||||||
conf->addLib(libs);
|
// conf->addLib(libs);
|
||||||
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, adv_ver, &version, &incs, &libs, &other))
|
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, adv_ver, &version, &incs, &libs, &other))
|
||||||
printf("\nWarning: libtorrent-rasterbar v%s was detected. Some feature will be disabled because they require v%s.\n", version.toLocal8Bit().data(), adv_ver.toUtf8().data());
|
printf("\nWarning: libtorrent-rasterbar v%s was detected. Some feature will be disabled because they require v%s.\n", version.toLocal8Bit().data(), adv_ver.toUtf8().data());
|
||||||
else
|
else
|
||||||
conf->addDefine("LIBTORRENT_0_15");
|
conf->addDefine("LIBTORRENT_0_15");
|
||||||
|
// Get linking parameters
|
||||||
|
QStringList params;
|
||||||
|
QByteArray staticlibs;
|
||||||
|
params << "--static" << "--libs" << "libtorrent-rasterbar";
|
||||||
|
conf->doCommand("pkg-config", params, &staticlibs);
|
||||||
|
conf->addLib(staticlibs.trimmed());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,12 +20,18 @@ public:
|
||||||
return false;
|
return false;
|
||||||
for(int n = 0; n < incs.count(); ++n)
|
for(int n = 0; n < incs.count(); ++n)
|
||||||
conf->addIncludePath(incs[n]);
|
conf->addIncludePath(incs[n]);
|
||||||
if(!libs.isEmpty())
|
//if(!libs.isEmpty())
|
||||||
conf->addLib(libs);
|
// conf->addLib(libs);
|
||||||
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, adv_ver, &version, &incs, &libs, &other))
|
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, adv_ver, &version, &incs, &libs, &other))
|
||||||
printf("\nWarning: libtorrent-rasterbar v%s was detected. Some feature will be disabled because they require v%s.\n", version.toLocal8Bit().data(), adv_ver.toUtf8().data());
|
printf("\nWarning: libtorrent-rasterbar v%s was detected. Some feature will be disabled because they require v%s.\n", version.toLocal8Bit().data(), adv_ver.toUtf8().data());
|
||||||
else
|
else
|
||||||
conf->addDefine("LIBTORRENT_0_15");
|
conf->addDefine("LIBTORRENT_0_15");
|
||||||
|
// Get linking parameters
|
||||||
|
QStringList params;
|
||||||
|
QByteArray staticlibs;
|
||||||
|
params << "--static" << "--libs" << "libtorrent-rasterbar";
|
||||||
|
conf->doCommand("pkg-config", params, &staticlibs);
|
||||||
|
conf->addLib(staticlibs.trimmed());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -103,8 +103,8 @@ contains(DEFINES, DISABLE_GUI) {
|
||||||
# QMAKE_CXXFLAGS_RELEASE += -fwrapv
|
# QMAKE_CXXFLAGS_RELEASE += -fwrapv
|
||||||
# QMAKE_CXXFLAGS_DEBUG += -fwrapv
|
# QMAKE_CXXFLAGS_DEBUG += -fwrapv
|
||||||
unix:QMAKE_LFLAGS_SHAPP += -rdynamic
|
unix:QMAKE_LFLAGS_SHAPP += -rdynamic
|
||||||
CONFIG += link_pkgconfig
|
#CONFIG += link_pkgconfig
|
||||||
PKGCONFIG += "libtorrent-rasterbar"
|
#PKGCONFIG += "libtorrent-rasterbar"
|
||||||
QT += network
|
QT += network
|
||||||
!contains(DEFINES, DISABLE_GUI) {
|
!contains(DEFINES, DISABLE_GUI) {
|
||||||
QT += xml
|
QT += xml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue