diff options
Diffstat (limited to 'recipes-qt/qt5')
-rw-r--r-- | recipes-qt/qt5/qtbase/0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/recipes-qt/qt5/qtbase/0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch b/recipes-qt/qt5/qtbase/0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch index 75201072..4807df09 100644 --- a/recipes-qt/qt5/qtbase/0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch +++ b/recipes-qt/qt5/qtbase/0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch | |||
@@ -61,11 +61,36 @@ Content-Transfer-Encoding: 8bit | |||
61 | Change-Id: Ie1c94b15f2a4e736b65b4d0924d99eb2a7d92a6c | 61 | Change-Id: Ie1c94b15f2a4e736b65b4d0924d99eb2a7d92a6c |
62 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 62 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
63 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | 63 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> |
64 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
64 | --- | 65 | --- |
66 | mkspecs/features/qt.prf | 13 +++++++++++++ | ||
65 | mkspecs/features/qt_common.prf | 2 +- | 67 | mkspecs/features/qt_common.prf | 2 +- |
66 | mkspecs/features/qt_module.prf | 16 ++++++++++++++++ | 68 | 2 files changed, 14 insertions(+), 1 deletion(-) |
67 | 2 files changed, 17 insertions(+), 1 deletion(-) | ||
68 | 69 | ||
70 | diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf | ||
71 | index f62b6bb..91be8b3 100644 | ||
72 | --- a/mkspecs/features/qt.prf | ||
73 | +++ b/mkspecs/features/qt.prf | ||
74 | @@ -321,6 +321,19 @@ contains(TEMPLATE, .*app) { | ||
75 | QTPLUGIN = $$manualplugs $$autoplugs | ||
76 | } | ||
77 | |||
78 | +contains(TEMPLATE, .*lib) { | ||
79 | + pkgconfig_prefix_replace.match = "prefix=$$[QT_SYSROOT]" | ||
80 | + pkgconfig_prefix_replace.replace = "prefix=" | ||
81 | + pkgconfig_prefix_replace.CONFIG = path | ||
82 | + QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_prefix_replace | ||
83 | + | ||
84 | + # drop -L/usr/lib in .prl files | ||
85 | + prl_replace.match = "-L\$${libdir}" | ||
86 | + prl_replace.replace = "" | ||
87 | + prl_replace.CONFIG = path | ||
88 | + QMAKE_PRL_INSTALL_REPLACE += prl_replace | ||
89 | +} | ||
90 | + | ||
91 | QT_PLUGIN_VERIFY = DEPLOYMENT_PLUGIN | ||
92 | contains(QT_CONFIG, static) { | ||
93 | QT_PLUGIN_VERIFY += QTPLUGIN | ||
69 | diff --git a/mkspecs/features/qt_common.prf b/mkspecs/features/qt_common.prf | 94 | diff --git a/mkspecs/features/qt_common.prf b/mkspecs/features/qt_common.prf |
70 | index 38602f6..f9c401f 100644 | 95 | index 38602f6..f9c401f 100644 |
71 | --- a/mkspecs/features/qt_common.prf | 96 | --- a/mkspecs/features/qt_common.prf |
@@ -79,33 +104,6 @@ index 38602f6..f9c401f 100644 | |||
79 | } | 104 | } |
80 | lib_replace.CONFIG = path | 105 | lib_replace.CONFIG = path |
81 | QMAKE_PRL_INSTALL_REPLACE += lib_replace | 106 | QMAKE_PRL_INSTALL_REPLACE += lib_replace |
82 | diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf | ||
83 | index aefd3ae..775cda2 100644 | ||
84 | --- a/mkspecs/features/qt_module.prf | ||
85 | +++ b/mkspecs/features/qt_module.prf | ||
86 | @@ -276,6 +276,22 @@ load(qt_targets) | ||
87 | ltlib_replace.replace = $$QMAKE_LIBTOOL_LIBDIR | ||
88 | ltlib_replace.CONFIG = path | ||
89 | QMAKE_LIBTOOL_INSTALL_REPLACE += ltlib_replace | ||
90 | + | ||
91 | + pkgconfig_include_replace.match = $$rplbase/include | ||
92 | + pkgconfig_include_replace.replace = "\$$\\{includedir}" | ||
93 | + pkgconfig_include_replace.CONFIG = path | ||
94 | + QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_include_replace | ||
95 | + | ||
96 | + pkgconfig_prefix_replace.match = "prefix=$$[QT_SYSROOT]" | ||
97 | + pkgconfig_prefix_replace.replace = "prefix=" | ||
98 | + pkgconfig_prefix_replace.CONFIG = path | ||
99 | + QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_prefix_replace | ||
100 | + | ||
101 | + # drop -L/usr/lib in .prl files | ||
102 | + prl_replace.match = "-L\$${libdir}" | ||
103 | + prl_replace.replace = "" | ||
104 | + prl_replace.CONFIG = path | ||
105 | + QMAKE_PRL_INSTALL_REPLACE += prl_replace | ||
106 | } | ||
107 | |||
108 | contains(QT_PRODUCT, OpenSource.*):DEFINES *= QT_OPENSOURCE | ||
109 | -- | 107 | -- |
110 | 2.7.1 | 108 | 2.7.1 |
111 | 109 | ||