diff mbox series

[meta-python] python3-pyzstd: Disable LTO on clang+arm

Message ID 20230504004252.2475637-1-raj.khem@gmail.com
State New
Headers show
Series [meta-python] python3-pyzstd: Disable LTO on clang+arm | expand

Commit Message

Khem Raj May 4, 2023, 12:42 a.m. UTC
clang-16 segfaults on arm while compiling with -flto

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-python/recipes-devtools/python/python3-pyzstd_0.15.7.bb | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pyzstd_0.15.7.bb b/meta-python/recipes-devtools/python/python3-pyzstd_0.15.7.bb
index e7a6c21085..f132d91a69 100644
--- a/meta-python/recipes-devtools/python/python3-pyzstd_0.15.7.bb
+++ b/meta-python/recipes-devtools/python/python3-pyzstd_0.15.7.bb
@@ -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
+}