diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-07-25 00:39:00 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2019-07-29 12:16:09 +0000 |
commit | 14a779e89b0d83f2e86bef61e414eb0037a73b6f (patch) | |
tree | b37e0e437d9a0f877d0ee26b0037cdf8e7c87fef | |
parent | cd9256718be8b28fff9d6e0d69dc819830c5cc20 (diff) | |
download | meta-qt5-14a779e89b0d83f2e86bef61e414eb0037a73b6f.tar.gz |
qttools: Enable clang support when using clang
Fix compiler errors when using clang compiler along the way
Fixes
aarch64-yoe-linux-musl-ld: cannot find -lclang
Use chpath to delete rpath which is detected as path to native clang in
sysroot
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-qt/qt5/qttools_git.bb | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/recipes-qt/qt5/qttools_git.bb b/recipes-qt/qt5/qttools_git.bb index e33d17d2..e9530385 100644 --- a/recipes-qt/qt5/qttools_git.bb +++ b/recipes-qt/qt5/qttools_git.bb | |||
@@ -12,8 +12,8 @@ LIC_FILES_CHKSUM = " \ | |||
12 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | 12 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ |
13 | " | 13 | " |
14 | 14 | ||
15 | DEPENDS += "qtbase qtdeclarative qtxmlpatterns" | 15 | DEPENDS += "qtbase qtdeclarative qtxmlpatterns chrpath-replacement-native" |
16 | 16 | EXTRANATIVEPATH += "chrpath-native" | |
17 | # Patches from https://github.com/meta-qt5/qttools/commits/b5.12 | 17 | # Patches from https://github.com/meta-qt5/qttools/commits/b5.12 |
18 | # 5.12.meta-qt5.2 | 18 | # 5.12.meta-qt5.2 |
19 | SRC_URI += " \ | 19 | SRC_URI += " \ |
@@ -25,12 +25,19 @@ FILES_${PN}-tools += "${datadir}${QT_DIR_NAME}/phrasebooks" | |||
25 | FILES_${PN}-examples = "${datadir}${QT_DIR_NAME}/examples" | 25 | FILES_${PN}-examples = "${datadir}${QT_DIR_NAME}/examples" |
26 | 26 | ||
27 | PACKAGECONFIG ??= "" | 27 | PACKAGECONFIG ??= "" |
28 | PACKAGECONFIG_append_toolchain-clang = " clang" | ||
29 | |||
28 | PACKAGECONFIG[qtwebkit] = ",,qtwebkit" | 30 | PACKAGECONFIG[qtwebkit] = ",,qtwebkit" |
31 | PACKAGECONFIG[clang] = ",,clang" | ||
29 | 32 | ||
30 | EXTRA_QMAKEVARS_PRE += " \ | 33 | EXTRA_QMAKEVARS_PRE += " \ |
31 | CONFIG-=config_clang \ | ||
32 | ${@bb.utils.contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)} \ | 34 | ${@bb.utils.contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)} \ |
33 | " | 35 | " |
36 | EXTRA_QMAKEVARS_PRE_append_class-native = " CONFIG-=config_clang" | ||
37 | EXTRA_QMAKEVARS_PRE_append_class-nativesdk = " CONFIG-=config_clang" | ||
38 | EXTRA_QMAKEVARS_PRE_append_class-target = "\ | ||
39 | ${@bb.utils.contains('PACKAGECONFIG', 'clang', 'CONFIG+=config_clang', 'CONFIG-=config_clang', d)} \ | ||
40 | " | ||
34 | 41 | ||
35 | SRCREV = "cc9250477eaa71a3f3ffd050591d4a9d835288ca" | 42 | SRCREV = "cc9250477eaa71a3f3ffd050591d4a9d835288ca" |
36 | 43 | ||
@@ -42,3 +49,6 @@ do_install_ptest() { | |||
42 | cp ${B}/tests/auto/qtdiag/tst_tdiag $t | 49 | cp ${B}/tests/auto/qtdiag/tst_tdiag $t |
43 | cp ${B}/tests/auto/qtattributionsscanner/tst_qtattributionsscanner $t | 50 | cp ${B}/tests/auto/qtattributionsscanner/tst_qtattributionsscanner $t |
44 | } | 51 | } |
52 | do_install_append_toolchain-clang() { | ||
53 | chrpath --delete ${D}${bindir}/qdoc | ||
54 | } | ||