diff options
| author | Kaelyn Takata <kaelyn.alexi@protonmail.com> | 2026-05-25 13:49:27 -0700 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-29 00:39:51 +0100 |
| commit | 9873d2c433b7dc8e2d510fc437c5b13c98d0a4ff (patch) | |
| tree | 5843d875e1f7519c7b3cacdc6c6909c8ee878008 /gnu/packages/python.scm | |
| parent | a6c665b5756af3319ac1577e678098e2197b7bfa (diff) | |
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>
Diffstat (limited to 'gnu/packages/python.scm')
| -rw-r--r-- | gnu/packages/python.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c205b256f4d..7eaf07b6325 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm | |||
| @@ -984,7 +984,10 @@ def contents() -> str: | |||
| 984 | #$@(if (%current-target-system) | 984 | #$@(if (%current-target-system) |
| 985 | #~("ac_cv_buggy_getaddrinfo=no" | 985 | #~("ac_cv_buggy_getaddrinfo=no" |
| 986 | "ac_cv_file__dev_ptmx=no" | 986 | "ac_cv_file__dev_ptmx=no" |
| 987 | "ac_cv_file__dev_ptc=no") | 987 | "ac_cv_file__dev_ptc=no" |
| 988 | (string-append "--with-build-python=" | ||
| 989 | #+(this-package-native-input "python") | ||
| 990 | "/bin/python3")) | ||
| 988 | #~()) | 991 | #~()) |
| 989 | ;; -fno-semantic-interposition reinstates some | 992 | ;; -fno-semantic-interposition reinstates some |
| 990 | ;; optimizations by gcc leading to around 15% speedup. | 993 | ;; optimizations by gcc leading to around 15% speedup. |
