diff options
-rw-r--r-- | recipes-qt/maliit/maliit-framework-qt5/0001-config.pri-Use-O1-optimization-in-DEBUG-flags.patch | 34 | ||||
-rw-r--r-- | recipes-qt/maliit/maliit-framework-qt5_git.bb | 8 |
2 files changed, 38 insertions, 4 deletions
diff --git a/recipes-qt/maliit/maliit-framework-qt5/0001-config.pri-Use-O1-optimization-in-DEBUG-flags.patch b/recipes-qt/maliit/maliit-framework-qt5/0001-config.pri-Use-O1-optimization-in-DEBUG-flags.patch new file mode 100644 index 00000000..73560340 --- /dev/null +++ b/recipes-qt/maliit/maliit-framework-qt5/0001-config.pri-Use-O1-optimization-in-DEBUG-flags.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From cb38c078fa34a3d0cff6bc195edd9f507477d2e1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 12 Jul 2017 11:45:06 -0700 | ||
4 | Subject: [PATCH] config.pri: Use -O1 optimization in DEBUG flags | ||
5 | |||
6 | when building wit FORTIFY_SOURCES we need some level of | ||
7 | optimization turned on for the compile to succeed | ||
8 | |||
9 | O1 is a good compromise between debug quality and | ||
10 | optimization level. | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | config.pri | 4 ++-- | ||
15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
16 | |||
17 | diff --git a/config.pri b/config.pri | ||
18 | index 1505f9d..7cc196a 100644 | ||
19 | --- a/config.pri | ||
20 | +++ b/config.pri | ||
21 | @@ -13,8 +13,8 @@ include(defines.pri) | ||
22 | # Linker optimization for release build | ||
23 | QMAKE_LFLAGS_RELEASE+=-Wl,--as-needed | ||
24 | # Compiler warnings are error if the build type is debug | ||
25 | -QMAKE_CXXFLAGS_DEBUG+=-Werror -O0 | ||
26 | -QMAKE_CFLAGS_DEBUG+=-Werror -O0 | ||
27 | +QMAKE_CXXFLAGS_DEBUG+=-Werror -O1 | ||
28 | +QMAKE_CFLAGS_DEBUG+=-Werror -O1 | ||
29 | |||
30 | OBJECTS_DIR = .obj | ||
31 | MOC_DIR = .moc | ||
32 | -- | ||
33 | 2.13.2 | ||
34 | |||
diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb index 62a7209b..e0a0e0e1 100644 --- a/recipes-qt/maliit/maliit-framework-qt5_git.bb +++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb | |||
@@ -7,9 +7,10 @@ LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=5c917f6ce94ceb8d8d5e16e2fca5b9ad" | |||
7 | inherit qmake5 qmake5_paths | 7 | inherit qmake5 qmake5_paths |
8 | 8 | ||
9 | SRC_URI = "git://github.com/maliit/framework.git;branch=master \ | 9 | SRC_URI = "git://github.com/maliit/framework.git;branch=master \ |
10 | file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \ | 10 | file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \ |
11 | file://maliit-server.desktop \ | 11 | file://maliit-server.desktop \ |
12 | " | 12 | file://0001-config.pri-Use-O1-optimization-in-DEBUG-flags.patch \ |
13 | " | ||
13 | 14 | ||
14 | SRCREV = "60b1b10de14f932420313c547ab801daf522d539" | 15 | SRCREV = "60b1b10de14f932420313c547ab801daf522d539" |
15 | PV = "0.99.0+git${SRCPV}" | 16 | PV = "0.99.0+git${SRCPV}" |
@@ -57,7 +58,6 @@ EXTRA_QMAKEVARS_PRE = "\ | |||
57 | CONFIG+=enable-dbus-activation \ | 58 | CONFIG+=enable-dbus-activation \ |
58 | CONFIG+=qt5-inputcontext \ | 59 | CONFIG+=qt5-inputcontext \ |
59 | " | 60 | " |
60 | |||
61 | EXTRA_OEMAKE += "INSTALL_ROOT=${D}" | 61 | EXTRA_OEMAKE += "INSTALL_ROOT=${D}" |
62 | 62 | ||
63 | do_install_append() { | 63 | do_install_append() { |