mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-04 16:10:12 +00:00
qtwebengine: workaround for linker error with gold
When using gold linker, qtbase PACKAGECONFIG[use-gold-linker],
qtwegengine may fail to build with linker error:
| FAILED: yocto_native/transport_security_state_generator
| /home/qt/work/build/build/tmp/hosttools/ld.gold: fatal error: /home/qt/work/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtwebengine/6.5.11/recipe-sysroot/usr/lib/libatomic.so: unsupported ELF machine number 40
| collect2: error: ld returned 1 exit status
The failure happens when chromium tries to build native host tools,
but links those against target sysroot. Exact reason why the target
sysroot is used is still unknown, but we can workaround this by
preventing webengine from using gold linker for those host tools.
Change-Id: I49512d8024249d96da0e1475c045c03e5ae25760
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
(cherry picked from commit d2013260c0)
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
This commit is contained in:
parent
9c4b456c26
commit
14dd0bd49f
|
|
@ -69,6 +69,7 @@ def write_toolchain_file(d, file_path):
|
|||
' current_cpu = "${current_cpu}"\n'
|
||||
' current_os = "linux"\n'
|
||||
' is_clang = false\n'
|
||||
' use_gold = false\n'
|
||||
' }\n'
|
||||
'}\n'
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user