diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2023-09-20 06:14:33 +0000 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2023-09-20 10:37:53 +0000 |
commit | b39efb84231c4bd26cb1bcc7756a5a12a7e9850a (patch) | |
tree | 553a3bd59c7e72f21546cfe97ef2a983553cc5c2 | |
parent | c41d281ab25e56c4049b2ecf1cc7b55424b34bb5 (diff) |
qtinsighttracker: add workaround for gold bug
Disable PTEST for x86 targets if gold linker is used. Gold linker has
bug the causes linker error: unexpected reloc 3 against global symbol
qt_version_tag without base register in object file when generating
a position-independent output file.
Change-Id: I2027a9f430b03d8efc1348c7d11001c6d7da6f11
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
-rw-r--r-- | recipes-qt/qt6/qtinsighttracker_git.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-qt/qt6/qtinsighttracker_git.bb b/recipes-qt/qt6/qtinsighttracker_git.bb index e440e30..b41a784 100644 --- a/recipes-qt/qt6/qtinsighttracker_git.bb +++ b/recipes-qt/qt6/qtinsighttracker_git.bb @@ -10,3 +10,8 @@ include recipes-qt/qt6/qt6-commercial.inc DEPENDS += "qtbase qtdeclarative qtdeclarative-native" FILES:${PN} += "${QT6_INSTALL_DATADIR}/qtinsight" + +# error: unexpected reloc 3 against global symbol qt_version_tag without base register +# in object file when generating a position-independent output file +QT_PTEST_ENABLED:x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '0', \ + bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d), d)}" |