summaryrefslogtreecommitdiff
path: root/dev-lang/python/python-3.10.9.ebuild
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-01-23 22:30:37 +0000
committerJames Le Cuirot <chewi@gentoo.org>2023-01-23 22:30:37 +0000
commit708460e50bca1d251a826bf74c00a3021ea76f10 (patch)
tree3481534df62e6f23ce0a80350f650cd64e507301 /dev-lang/python/python-3.10.9.ebuild
parent5fdc644d9281aa4db34c108420ab24481e11c8ee (diff)
downloadgentoo-708460e50bca1d251a826bf74c00a3021ea76f10.tar.gz
gentoo-708460e50bca1d251a826bf74c00a3021ea76f10.tar.bz2
gentoo-708460e50bca1d251a826bf74c00a3021ea76f10.zip
dev-lang/python: Fix cross-compiling, particularly 3.11
Despite efforts to avoid needing the same version of Python installed on the build host, this was still required due to libpython.so not being found. Even when it was found, it was erroneously looking under /usr rather than ${S} for the Python modules. For some unknown reason, this caused 3.11 to fail. The easiest solution is to just build a static Python with no libpython.so. This also ensures modules are loaded from ${S}. Closes: https://bugs.gentoo.org/889874 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-lang/python/python-3.10.9.ebuild')
-rw-r--r--dev-lang/python/python-3.10.9.ebuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/dev-lang/python/python-3.10.9.ebuild b/dev-lang/python/python-3.10.9.ebuild
index 1b3700f2b2b9..390bba98511d 100644
--- a/dev-lang/python/python-3.10.9.ebuild
+++ b/dev-lang/python/python-3.10.9.ebuild
@@ -246,6 +246,9 @@ src_configure() {
--libdir="${cbuild_libdir:2}"
+ # Avoid needing to load the right libpython.so.
+ --disable-shared
+
# As minimal as possible for the mini CBUILD Python
# we build just for cross.
--without-lto