From 14a6858a7d8bc085420a1430b3a3f67885019f27 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 29 Aug 2023 04:04:16 +0100 Subject: gentoo auto-resync : 29:08:2023 - 04:04:16 --- dev-lang/python/python-3.11.5.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'dev-lang/python/python-3.11.5.ebuild') diff --git a/dev-lang/python/python-3.11.5.ebuild b/dev-lang/python/python-3.11.5.ebuild index 6ebc482a9a54..db78c59ef0d7 100644 --- a/dev-lang/python/python-3.11.5.ebuild +++ b/dev-lang/python/python-3.11.5.ebuild @@ -237,9 +237,13 @@ src_configure() { # pass system CFLAGS & LDFLAGS as _NODIST, otherwise they'll get # propagated to sysconfig for built extensions - local -x CFLAGS_NODIST=${CFLAGS_FOR_BUILD} - local -x LDFLAGS_NODIST=${LDFLAGS_FOR_BUILD} + # + # -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 CFLAGS= LDFLAGS= + local -x BUILD_CFLAGS="${CFLAGS_NODIST}" + local -x BUILD_LDFLAGS=${LDFLAGS_NODIST} # We need to build our own Python on CBUILD first, and feed it in. # bug #847910 -- cgit v1.2.3