mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-21 20:19:33 +00:00
python3-matplotlib: Disable LTO for clang/riscv
LTO fails to link on RV32/RV64 | Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension ( ignoring target-abi) | riscv64-yoe-linux-ld.lld: error: lto.tmp: cannot link object files with different floating-point ABI Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
1 parent
bf5aeb92c0
commit
f623d8b574
1 file changed
+3
@@ -38,9 +38,12 @@ RDEPENDS_${PN} = "\
|
|||||||
python3-pytz \
|
python3-pytz \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
ENABLELTO_toolchain-clang_riscv64 = "echo enable_lto = False >> ${S}/setup.cfg"
|
||||||
|
ENABLELTO_toolchain-clang_riscv32 = "echo enable_lto = False >> ${S}/setup.cfg"
|
||||||
do_compile_prepend() {
|
do_compile_prepend() {
|
||||||
echo [libs] > ${S}/setup.cfg
|
echo [libs] > ${S}/setup.cfg
|
||||||
echo system_freetype = true >> ${S}/setup.cfg
|
echo system_freetype = true >> ${S}/setup.cfg
|
||||||
|
${ENABLELTO}
|
||||||
}
|
}
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
Reference in new issue
Block a user