diff options
author | Jonathan Liu <net147@gmail.com> | 2014-10-16 15:44:05 +1100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-10-30 14:15:41 +0100 |
commit | 264f20883cae2c5e5222538b3f76e2145e72b1ab (patch) | |
tree | 6cfe17e35b1ad27aa344a81df1eaa82aedf13236 /recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch | |
parent | 01f1ab8ee8ca31b39d097a913f9f6f8de89f5fb5 (diff) | |
download | meta-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.patch | 34 |
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 @@ | |||
1 | From d242c15eb961fbdee69c0a0989cd100d174a25db Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonathan Liu <net147@gmail.com> | ||
3 | Date: Wed, 15 Oct 2014 17:01:06 +1100 | ||
4 | Subject: [PATCH 6/6] Include QMAKE_CC when extracting C compiler flags | ||
5 | |||
6 | This fixes cross-compile settings detection for cross-compilation | ||
7 | environments where the C compiler cross-compilation flags are set in | ||
8 | CC/QMAKE_CC instead of CFLAGS/QMAKE_CFLAGS (e.g. OpenEmbedded). | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | |||
12 | Change-Id: I0a7b0f6c47a00775ec18073a16359c8351363285 | ||
13 | Reviewed-by: Andras Becsi <andras.becsi@digia.com> | ||
14 | Signed-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 | |||
19 | diff --git a/tools/qmake/mkspecs/features/functions.prf b/tools/qmake/mkspecs/features/functions.prf | ||
20 | index 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 | -- | ||
33 | 2.1.1 | ||
34 | |||