summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase-5.0.2/0011-qt_module-Fix-paths-in-.prl-files.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtbase-5.0.2/0011-qt_module-Fix-paths-in-.prl-files.patch')
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0011-qt_module-Fix-paths-in-.prl-files.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0011-qt_module-Fix-paths-in-.prl-files.patch b/recipes-qt/qt5/qtbase-5.0.2/0011-qt_module-Fix-paths-in-.prl-files.patch
new file mode 100644
index 00000000..19523084
--- /dev/null
+++ b/recipes-qt/qt5/qtbase-5.0.2/0011-qt_module-Fix-paths-in-.prl-files.patch
@@ -0,0 +1,61 @@
1From 851960243212ffe0ac25d0fea236b7a8bc0e5dc5 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sun, 28 Apr 2013 12:56:55 +0200
4Subject: [PATCH 11/11] qt_module: Fix paths in .prl files
5
6* qmake does not prefix them with QT_SYSROOT when using them
7 so e.g. when building qtdeclarative we get -L/usr/lib to LINKAGE
8 variable, which is unsafe for cross-compilation
9* writting QT_SYSROOT in .prl files is dangerous for sstate when
10 builds are in different directories, so we need
11 SSTATE_SCAN_FILES += "*.pri *.prl"
12 to make them relocateble
13
14Change-Id: I4b66dcad539a3ba876d8e4ee2eb2ccd626cd03ea
15Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
16---
17 mkspecs/features/qt_module.prf | 28 +++++++++++++++++-----------
18 1 file changed, 17 insertions(+), 11 deletions(-)
19
20diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
21index 7fbfd8d..226119f 100644
22--- a/mkspecs/features/qt_module.prf
23+++ b/mkspecs/features/qt_module.prf
24@@ -132,17 +132,23 @@ unix|win32-g++* {
25 pkgconfig_include_replace.replace = "\$$\\{includedir}"
26 pkgconfig_lib_replace.match = $$rplbase/lib
27 pkgconfig_lib_replace.replace = "\$$\\{libdir}"
28- include_replace.match = $$rplbase/include
29- include_replace.replace = $$[QT_INSTALL_HEADERS/raw]
30- lib_replace.match = $$rplbase/lib
31- lib_replace.replace = $$[QT_INSTALL_LIBS/raw]
32- lafile_replace.match = $$rplbase
33- lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]"
34-
35- !isEmpty(SYSROOT): \
36- rplbase = $$[SYSROOT] \
37- lafile_replace.match = $$rplbase \
38- lafile_replace.replace = "=" \
39+ !exists($$[QT_SYSROOT]) {
40+ include_replace.match = $$rplbase/include
41+ include_replace.replace = $$[QT_INSTALL_HEADERS/raw]
42+ lib_replace.match = $$rplbase/lib
43+ lib_replace.replace = $$[QT_INSTALL_LIBS/raw]
44+ lafile_replace.match = $$rplbase
45+ lafile_replace.replace = "$$[QT_INSTALL_PREFIX/raw]"
46+ } else {
47+ # include_replace and lib_replace are duplicate, but we don't want to
48+ # make QMAKE_PKGCONFIG_INSTALL_REPLACE, QMAKE_PRL_INSTALL_REPLACE conditional
49+ include_replace.match = $$rplbase
50+ include_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw]
51+ lib_replace.match = $$rplbase
52+ lib_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw]
53+ lafile_replace.match = $$rplbase
54+ lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]"
55+ }
56
57 QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_include_replace pkgconfig_lib_replace
58 QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace
59--
601.8.2.1
61