From 5567fca771e4bb118f6dbc2f12fa7c85229e3b41 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 10 Mar 2026 12:25:57 +0000 Subject: dev-lang/python: pass -fno-lto in LDFLAGS for CBUILD too Needed for cross-compiling when -flto is in *FLAGS including LDFLAGS. We already try to disable LTO for the CBUILD Python we build for cross but not in LDFLAGS, so do that too to avoid a configure test failure. Signed-off-by: Sam James --- dev-lang/python/python-3.10.20.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev-lang/python/python-3.10.20.ebuild') diff --git a/dev-lang/python/python-3.10.20.ebuild b/dev-lang/python/python-3.10.20.ebuild index 841a3e90110af..755613985a5a8 100644 --- a/dev-lang/python/python-3.10.20.ebuild +++ b/dev-lang/python/python-3.10.20.ebuild @@ -148,10 +148,10 @@ build_cbuild_python() { # # -fno-lto to avoid bug #700012 (not like it matters for mini-CBUILD Python anyway) local -x CFLAGS_NODIST="${BUILD_CFLAGS} -fno-lto" - local -x LDFLAGS_NODIST=${BUILD_LDFLAGS} + local -x LDFLAGS_NODIST="${BUILD_LDFLAGS} -fno-lto" local -x CFLAGS= LDFLAGS= local -x BUILD_CFLAGS="${CFLAGS_NODIST}" - local -x BUILD_LDFLAGS=${LDFLAGS_NODIST} + local -x BUILD_LDFLAGS="${LDFLAGS_NODIST}" # We need to build our own Python on CBUILD first, and feed it in. # bug #847910 and bug #864911. -- cgit v1.2.3