summaryrefslogtreecommitdiffstats
path: root/patches/qt-everywhere-src-5.12.2/0107-HACK-don-t-resolv-library-paths.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/qt-everywhere-src-5.12.2/0107-HACK-don-t-resolv-library-paths.patch')
-rw-r--r--patches/qt-everywhere-src-5.12.2/0107-HACK-don-t-resolv-library-paths.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/qt-everywhere-src-5.12.2/0107-HACK-don-t-resolv-library-paths.patch b/patches/qt-everywhere-src-5.12.2/0107-HACK-don-t-resolv-library-paths.patch
new file mode 100644
index 000000000..f6a3bb4cf
--- /dev/null
+++ b/patches/qt-everywhere-src-5.12.2/0107-HACK-don-t-resolv-library-paths.patch
@@ -0,0 +1,30 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Fri, 8 Feb 2019 15:56:46 +0100
+Subject: [PATCH] HACK: don't resolv library paths
+
+qtConfResolveLibs turns '-lfoo' into the full path for libfoo.so and fails
+if the library is not found.
+
+This break when the library is a ld scripts in a relocatable toolchain.
+For example libm.so may contain 'GROUP ( /lib/libm.so.6 ...)' and this path
+is not prefixed with the toolchain sysroot when the absolute path for
+libm.so is used.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ qtbase/mkspecs/features/qt_configure.prf | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/qtbase/mkspecs/features/qt_configure.prf b/qtbase/mkspecs/features/qt_configure.prf
+index 7ca65c92b3f1..5ce57b979617 100644
+--- a/qtbase/mkspecs/features/qt_configure.prf
++++ b/qtbase/mkspecs/features/qt_configure.prf
+@@ -573,7 +573,7 @@ defineTest(qtConfResolveLibs) {
+ out += $$l
+ }
+ }
+- $$1 = $$out
++ $$1 = $$2
+ export($$1)
+ !isEmpty(4) {
+ $$4 = $$paths