From e2013cbca24e396c9ea1c09cbc4c2f9c1d1cd948 Mon Sep 17 00:00:00 2001 From: Alan Swanson Date: Sun, 25 Jun 2023 15:30:48 +0100 Subject: [PATCH] dev-python/cryptography: diable LTO Causes "_rust.abi3.so: undefined symbol: PyInit__openssl" due to LTO conflict when using GCC for C/C++ and Clang/LLVM for Rust. https://bugs.gentoo.org/903908 https://github.com/pyca/cryptography/issues/9023 --- sys-config/ltoize/files/package.cflags/lto.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/sys-config/ltoize/files/package.cflags/lto.conf b/sys-config/ltoize/files/package.cflags/lto.conf index 10bdf0e0..c4ebcf54 100644 --- a/sys-config/ltoize/files/package.cflags/lto.conf +++ b/sys-config/ltoize/files/package.cflags/lto.conf @@ -141,6 +141,7 @@ dev-libs/libbsd *FLAGS-=-flto* # Undefined symbol error when building mail-clien dev-libs/libpcre *FLAGS-=-flto* # Test failure dev-libs/protobuf *FLAGS-=-flto* #Upstream bug https://github.com/protocolbuffers/protobuf/issues/4958 dev-libs/rocr-runtime *FLAGS-=-flto* # Causes crashes in multiple OpenCL tools +dev-python/cryptography *FLAGS-=-flto* # Undefined symbol PyInit__openssl due to GCC versus LLVM/Clang LTO https://github.com/pyca/cryptography/issues/9023 dev-qt/qtscript *FLAGS-=-flto* #LTO patch exists, but crashes on newer Qt versions. Needs to be updated. dev-scheme/gambit *FLAGS-=-flto* # Runtime errors when gsc when built with LTO on > GCC 8 media-libs/mesa "has video_cards_i965 ${IUSE//+} && use video_cards_i965 && FlagSubAllFlags -flto*"