dev-python/rapidfuzz: Sterilize LTO-related build flags

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-10-05 21:16:56 +02:00
parent bdd96650f7
commit 5ba631894c

View File

@@ -37,4 +37,11 @@ BDEPEND="
distutils_enable_tests pytest
export RAPIDFUZZ_BUILD_EXTENSION=1
src_prepare() {
# sterilize build flags
sed -i -e '/CMAKE_INTERPROCEDURAL_OPTIMIZATION/d' CMakeLists.txt || die
distutils-r1_src_prepare
export RAPIDFUZZ_BUILD_EXTENSION=1
}