summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2014-10-16 15:44:05 +1100
committerMartin Jansa <Martin.Jansa@gmail.com>2014-10-30 14:15:41 +0100
commit264f20883cae2c5e5222538b3f76e2145e72b1ab (patch)
tree6cfe17e35b1ad27aa344a81df1eaa82aedf13236 /recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch
parent01f1ab8ee8ca31b39d097a913f9f6f8de89f5fb5 (diff)
downloadmeta-qt5-264f20883cae2c5e5222538b3f76e2145e72b1ab.tar.gz
qtwebengine: backport patches to fix ARM build failures
Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch')
-rw-r--r--recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch b/recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch
new file mode 100644
index 00000000..920dd91b
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch
@@ -0,0 +1,34 @@
1From d242c15eb961fbdee69c0a0989cd100d174a25db Mon Sep 17 00:00:00 2001
2From: Jonathan Liu <net147@gmail.com>
3Date: Wed, 15 Oct 2014 17:01:06 +1100
4Subject: [PATCH 6/6] Include QMAKE_CC when extracting C compiler flags
5
6This fixes cross-compile settings detection for cross-compilation
7environments where the C compiler cross-compilation flags are set in
8CC/QMAKE_CC instead of CFLAGS/QMAKE_CFLAGS (e.g. OpenEmbedded).
9
10Upstream-Status: Backport
11
12Change-Id: I0a7b0f6c47a00775ec18073a16359c8351363285
13Reviewed-by: Andras Becsi <andras.becsi@digia.com>
14Signed-off-by: Jonathan Liu <net147@gmail.com>
15---
16 tools/qmake/mkspecs/features/functions.prf | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/tools/qmake/mkspecs/features/functions.prf b/tools/qmake/mkspecs/features/functions.prf
20index 78b1190..37dd615 100644
21--- a/tools/qmake/mkspecs/features/functions.prf
22+++ b/tools/qmake/mkspecs/features/functions.prf
23@@ -14,7 +14,7 @@ defineReplace(getConfigDir) {
24 }
25
26 defineReplace(extractCFlag) {
27- CFLAGS = $$QMAKE_CFLAGS
28+ CFLAGS = $$QMAKE_CC $$QMAKE_CFLAGS
29 !isEmpty(ANDROID_TARGET_CFLAGS): CFLAGS = $$ANDROID_TARGET_CFLAGS
30 OPTION = $$find(CFLAGS, $$1)
31 OPTION = $$split(OPTION, =)
32--
332.1.1
34