2013-07-04 11:37:25 +02:00
|
|
|
diff --git a/src/corelib/tools/qlocale_icu.cpp b/src/corelib/tools/qlocale_icu.cpp
|
|
|
|
index c3e2907..2fac4e1 100644
|
|
|
|
--- a/src/corelib/tools/qlocale_icu.cpp
|
|
|
|
+++ b/src/corelib/tools/qlocale_icu.cpp
|
|
|
|
@@ -81,7 +81,7 @@ bool qt_initIcu(const QString &localeString)
|
2012-09-29 05:20:34 +02:00
|
|
|
if (status == NotLoaded) {
|
|
|
|
|
|
|
|
// resolve libicui18n
|
|
|
|
- QLibrary lib(QLatin1String("icui18n"), QLatin1String(U_ICU_VERSION_SHORT));
|
|
|
|
+ QLibrary lib(QLatin1String("@icu@/lib/libicui18n"), QLatin1String(U_ICU_VERSION_SHORT));
|
|
|
|
lib.setLoadHints(QLibrary::ImprovedSearchHeuristics);
|
|
|
|
if (!lib.load()) {
|
|
|
|
qWarning() << "Unable to load library icui18n" << lib.errorString();
|
2013-07-04 11:37:25 +02:00
|
|
|
@@ -111,7 +111,7 @@ bool qt_initIcu(const QString &localeString)
|
2012-09-29 05:20:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// resolve libicuuc
|
|
|
|
- QLibrary ucLib(QLatin1String("icuuc"), QLatin1String(U_ICU_VERSION_SHORT));
|
|
|
|
+ QLibrary ucLib(QLatin1String("@icu@/lib/libicuuc"), QLatin1String(U_ICU_VERSION_SHORT));
|
|
|
|
ucLib.setLoadHints(QLibrary::ImprovedSearchHeuristics);
|
|
|
|
if (!ucLib.load()) {
|
|
|
|
qWarning() << "Unable to load library icuuc" << ucLib.errorString();
|
2013-07-04 11:37:25 +02:00
|
|
|
diff --git a/src/gui/painting/qcups.cpp b/src/gui/painting/qcups.cpp
|
|
|
|
index 99ea43f..acdf9c9 100644
|
|
|
|
--- a/src/gui/painting/qcups.cpp
|
|
|
|
+++ b/src/gui/painting/qcups.cpp
|
|
|
|
@@ -87,7 +87,7 @@ static CupsPrintFile _cupsPrintFile = 0;
|
2011-12-24 22:52:08 +01:00
|
|
|
|
|
|
|
static void resolveCups()
|
|
|
|
{
|
|
|
|
- QLibrary cupsLib(QLatin1String("cups"), 2);
|
|
|
|
+ QLibrary cupsLib(QLatin1String("@cups@/lib/libcups"), 2);
|
|
|
|
if(cupsLib.load()) {
|
|
|
|
_cupsGetDests = (CupsGetDests) cupsLib.resolve("cupsGetDests");
|
|
|
|
_cupsFreeDests = (CupsFreeDests) cupsLib.resolve("cupsFreeDests");
|
2013-07-04 11:37:25 +02:00
|
|
|
diff --git a/src/gui/painting/qprinterinfo_unix.cpp b/src/gui/painting/qprinterinfo_unix.cpp
|
|
|
|
index 3d15538..f0f5351 100644
|
|
|
|
--- a/src/gui/painting/qprinterinfo_unix.cpp
|
|
|
|
+++ b/src/gui/painting/qprinterinfo_unix.cpp
|
|
|
|
@@ -454,7 +454,7 @@ int qt_retrieveNisPrinters(QList<QPrinterDescription> *printers)
|
2011-12-24 22:52:08 +01:00
|
|
|
char *domain;
|
|
|
|
int err;
|
|
|
|
|
|
|
|
- QLibrary lib(QLatin1String("nsl"));
|
|
|
|
+ QLibrary lib(QLatin1String("@glibc@/lib/libnsl"));
|
|
|
|
typedef int (*ypGetDefaultDomain)(char **);
|
|
|
|
ypGetDefaultDomain _ypGetDefaultDomain = (ypGetDefaultDomain)lib.resolve("yp_get_default_domain");
|
|
|
|
typedef int (*ypAll)(const char *, const char *, const struct ypall_callback *);
|
2013-07-04 11:37:25 +02:00
|
|
|
diff --git a/src/network/kernel/qhostinfo_unix.cpp b/src/network/kernel/qhostinfo_unix.cpp
|
|
|
|
index 6b42d1e..f88b628 100644
|
|
|
|
--- a/src/network/kernel/qhostinfo_unix.cpp
|
|
|
|
+++ b/src/network/kernel/qhostinfo_unix.cpp
|
|
|
|
@@ -95,7 +95,7 @@ static res_state_ptr local_res = 0;
|
2011-12-24 22:52:08 +01:00
|
|
|
static void resolveLibrary()
|
|
|
|
{
|
2013-07-04 11:37:25 +02:00
|
|
|
#if !defined(QT_NO_LIBRARY) && !defined(Q_OS_QNX)
|
2011-12-24 22:52:08 +01:00
|
|
|
- QLibrary lib(QLatin1String("resolv"));
|
|
|
|
+ QLibrary lib(QLatin1String("@glibc@/lib/libresolv"));
|
2012-09-29 05:20:34 +02:00
|
|
|
lib.setLoadHints(QLibrary::ImprovedSearchHeuristics);
|
2011-12-24 22:52:08 +01:00
|
|
|
if (!lib.load())
|
|
|
|
return;
|
2013-07-04 11:37:25 +02:00
|
|
|
diff --git a/src/plugins/platforms/xlib/qxlibstatic.cpp b/src/plugins/platforms/xlib/qxlibstatic.cpp
|
|
|
|
index f8f3d69..d63c5bc 100644
|
|
|
|
--- a/src/plugins/platforms/xlib/qxlibstatic.cpp
|
|
|
|
+++ b/src/plugins/platforms/xlib/qxlibstatic.cpp
|
|
|
|
@@ -242,7 +242,7 @@ static void* qt_load_library_runtime(const char *library, int vernum,
|
2011-12-24 22:52:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# define XFIXES_LOAD_RUNTIME(vernum, symbol, symbol_type) \
|
|
|
|
- (symbol_type)qt_load_library_runtime("libXfixes", vernum, 4, #symbol);
|
|
|
|
+ (symbol_type)qt_load_library_runtime("@libXfixes@/lib/libXfixes", vernum, 4, #symbol);
|
|
|
|
# define XFIXES_LOAD_V1(symbol) \
|
|
|
|
XFIXES_LOAD_RUNTIME(1, symbol, Ptr##symbol)
|
|
|
|
# define XFIXES_LOAD_V2(symbol) \
|