python3-pyzstd: Disable LTO on clang+arm

clang-16 segfaults on arm while compiling with -flto

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2023-05-03 17:41:36 -07:00
parent be1fa63b69
commit c5f6d61ae2

View File

@ -11,3 +11,8 @@ PYPI_PACKAGE = "pyzstd"
SRC_URI[sha256sum] = "55e503f28f5a9d225ce9d0639e3f5b1801bacace5aea926ec2998e73c5150fe7"
inherit pypi setuptools3
# clang-16 with -flto segfaults on arm, therefore ignore flto for now
do_configure:append:arm:toolchain-clang() {
sed -i -e "s|'-flto'|''|" ${S}/setup.py
}