1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-07-04 22:24:06 +02:00

gnu: python@3.12: Support cross-compilation.

* gnu/packages/python.scm (python-3.12)[arguments]: Pass
‘--with-build-python’ when cross-compiling.

Fixes: guix/guix#8827
Merges: guix/guix!8826
Change-Id: Ibaea0cf3250ee0ce0b2d838a4edc30fa1ac59dbc
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Kaelyn Takata
2026-05-25 13:49:27 -07:00
committed by Sharlatan Hellseher
parent a6c665b575
commit 9873d2c433
+4 -1
View File
@@ -984,7 +984,10 @@ def contents() -> str:
#$@(if (%current-target-system)
#~("ac_cv_buggy_getaddrinfo=no"
"ac_cv_file__dev_ptmx=no"
"ac_cv_file__dev_ptc=no")
"ac_cv_file__dev_ptc=no"
(string-append "--with-build-python="
#+(this-package-native-input "python")
"/bin/python3"))
#~())
;; -fno-semantic-interposition reinstates some
;; optimizations by gcc leading to around 15% speedup.