nixpkgs/pkgs/development/libraries/qt-5/5.6/qtbase/dlopen-resolv.patch
Thomas Tuegel b8a83d901f qt5: use absolute paths to plugins in CMake
This reverts commit 17f9b21c09.

This is a partial unrevert. Qt 5.6 and Qt 5.7 remain building and
working. Qt 5.5 stays building but broken.
2016-08-28 07:33:42 -05:00

26 lines
1.1 KiB
Diff

Index: qtbase-opensource-src-5.6.1/src/network/kernel/qdnslookup_unix.cpp
===================================================================
--- qtbase-opensource-src-5.6.1.orig/src/network/kernel/qdnslookup_unix.cpp
+++ qtbase-opensource-src-5.6.1/src/network/kernel/qdnslookup_unix.cpp
@@ -78,7 +78,7 @@ static bool resolveLibraryInternal()
if (!lib.load())
#endif
{
- lib.setFileName(QLatin1String("resolv"));
+ lib.setFileName(QLatin1String("@glibc@/lib/resolv"));
if (!lib.load())
return false;
}
Index: qtbase-opensource-src-5.6.1/src/network/kernel/qhostinfo_unix.cpp
===================================================================
--- qtbase-opensource-src-5.6.1.orig/src/network/kernel/qhostinfo_unix.cpp
+++ qtbase-opensource-src-5.6.1/src/network/kernel/qhostinfo_unix.cpp
@@ -94,7 +94,7 @@ static bool resolveLibraryInternal()
if (!lib.load())
#endif
{
- lib.setFileName(QLatin1String("resolv"));
+ lib.setFileName(QLatin1String("@glibc@/lib/libresolv"));
if (!lib.load())
return false;
}