diff options
| author | Samuli Piippo <samuli.piippo@qt.io> | 2018-10-23 10:10:14 +0300 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@qt.io> | 2018-10-23 08:10:07 +0000 |
| commit | 000ffe6066219e749c95269dd72edb9b662d4b63 (patch) | |
| tree | e1dd5577a045865d46df747af95882422ff6128c | |
| parent | 6deab79316572faceaadc72c36796384eb20fea9 (diff) | |
| download | meta-qt5-000ffe6066219e749c95269dd72edb9b662d4b63.tar.gz | |
qt5: Disable ltcg for host_build
debug-prefix-map does not work correctly for static libraries
when using ltcg, and since host_build compilations link agaist
the libQt5Bootstrap.a library, it breaks source file packaging
into debug packages.
Task-number: QTBUG-71230
Change-Id: I33a3f2314594ca0d2520c6c289bf0505e11c189c
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
| -rw-r--r-- | recipes-qt/qt5/nativesdk-qtbase_git.bb | 1 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase-native_git.bb | 1 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase/0015-Disable-ltcg-for-host_build.patch | 26 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 1 |
4 files changed, 29 insertions, 0 deletions
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb index dac1e9b2..01fa84fa 100644 --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb | |||
| @@ -38,6 +38,7 @@ SRC_URI += "\ | |||
| 38 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ | 38 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ |
| 39 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ | 39 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ |
| 40 | file://0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch \ | 40 | file://0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch \ |
| 41 | file://0015-Disable-ltcg-for-host_build.patch \ | ||
| 41 | " | 42 | " |
| 42 | 43 | ||
| 43 | # common for qtbase-native and nativesdk-qtbase | 44 | # common for qtbase-native and nativesdk-qtbase |
diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb index f2e56327..67dfc27d 100644 --- a/recipes-qt/qt5/qtbase-native_git.bb +++ b/recipes-qt/qt5/qtbase-native_git.bb | |||
| @@ -33,6 +33,7 @@ SRC_URI += "\ | |||
| 33 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ | 33 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ |
| 34 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ | 34 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ |
| 35 | file://0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch \ | 35 | file://0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch \ |
| 36 | file://0015-Disable-ltcg-for-host_build.patch \ | ||
| 36 | " | 37 | " |
| 37 | 38 | ||
| 38 | # common for qtbase-native and nativesdk-qtbase | 39 | # common for qtbase-native and nativesdk-qtbase |
diff --git a/recipes-qt/qt5/qtbase/0015-Disable-ltcg-for-host_build.patch b/recipes-qt/qt5/qtbase/0015-Disable-ltcg-for-host_build.patch new file mode 100644 index 00000000..8b961e60 --- /dev/null +++ b/recipes-qt/qt5/qtbase/0015-Disable-ltcg-for-host_build.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | From 94383531bde019ba113cc416b5cf3627e18ffef3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
| 3 | Date: Tue, 23 Oct 2018 09:54:57 +0300 | ||
| 4 | Subject: [PATCH] Disable ltcg for host_build | ||
| 5 | |||
| 6 | debug-prefix-map does not work correctly for static libraries | ||
| 7 | when using ltcg, and since host_build compilations link agaist | ||
| 8 | the libQt5Bootstrap.a library, it breaks source file packaging | ||
| 9 | into debug packages. | ||
| 10 | |||
| 11 | Task-number: QTBUG-71230 | ||
| 12 | Upstream-Status: Inappropriate [embedded specific] | ||
| 13 | --- | ||
| 14 | mkspecs/features/ltcg.prf | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/mkspecs/features/ltcg.prf b/mkspecs/features/ltcg.prf | ||
| 18 | index ccf0226272..482e5b573d 100644 | ||
| 19 | --- a/mkspecs/features/ltcg.prf | ||
| 20 | +++ b/mkspecs/features/ltcg.prf | ||
| 21 | @@ -1,4 +1,4 @@ | ||
| 22 | -CONFIG(release, debug|release) { | ||
| 23 | +CONFIG(release, debug|release):!host_build { | ||
| 24 | # We need fat object files when creating static libraries on some platforms | ||
| 25 | # so the linker will know to load a particular object from the library | ||
| 26 | # in the first place. On others, we have special ar and nm to create the symbol | ||
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index 7c17c474..b563684b 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
| @@ -29,6 +29,7 @@ SRC_URI += "\ | |||
| 29 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ | 29 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ |
| 30 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ | 30 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ |
| 31 | file://0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch \ | 31 | file://0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch \ |
| 32 | file://0015-Disable-ltcg-for-host_build.patch \ | ||
| 32 | " | 33 | " |
| 33 | 34 | ||
| 34 | 35 | ||
