diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2025-04-20 23:28:20 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-04-21 23:49:25 +0200 |
| commit | 49d9dca64f1d09309e039a1ae45f60f18883f6e7 (patch) | |
| tree | a160b0d303214a27207973669e3fc8f68c39f6b0 /gnu/packages/python.scm | |
| parent | 4488cca17c9c02add8366dce9e8dd2f528c15a58 (diff) | |
gnu: python@3.11: Support cross-compilation.
* gnu/packages/python.scm (python-3.11)[arguments]: Pass
‘--with-build-python’ when cross-compiling.
Change-Id: Ibb210cc599ff06c5da7e73f706488488c84f5cba
Diffstat (limited to 'gnu/packages/python.scm')
| -rw-r--r-- | gnu/packages/python.scm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ebc9712294b..0f2b0891aa6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> | 2 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> |
| 3 | ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2021, 2023 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2013-2018, 2021, 2023, 2025 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr> | 4 | ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr> |
| 5 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> | 5 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
| 6 | ;;; Copyright © 2014, 2017, 2019 Eric Bavier <bavier@member.fsf.org> | 6 | ;;; Copyright © 2014, 2017, 2019 Eric Bavier <bavier@member.fsf.org> |
| @@ -728,9 +728,12 @@ def contents() -> str: | |||
| 728 | ;; Disable runtime check failing if cross-compiling, see: | 728 | ;; Disable runtime check failing if cross-compiling, see: |
| 729 | ;; https://lists.yoctoproject.org/pipermail/poky/2013-June/008997.html | 729 | ;; https://lists.yoctoproject.org/pipermail/poky/2013-June/008997.html |
| 730 | #$@(if (%current-target-system) | 730 | #$@(if (%current-target-system) |
| 731 | '("ac_cv_buggy_getaddrinfo=no" | 731 | #~("ac_cv_buggy_getaddrinfo=no" |
| 732 | "ac_cv_file__dev_ptmx=no" | 732 | "ac_cv_file__dev_ptmx=no" |
| 733 | "ac_cv_file__dev_ptc=no") | 733 | "ac_cv_file__dev_ptc=no" |
| 734 | (string-append "--with-build-python=" | ||
| 735 | #+(this-package-native-input "python") | ||
| 736 | "/bin/python3")) | ||
| 734 | '()) | 737 | '()) |
| 735 | ;; -fno-semantic-interposition reinstates some | 738 | ;; -fno-semantic-interposition reinstates some |
| 736 | ;; optimizations by gcc leading to around 15% speedup. | 739 | ;; optimizations by gcc leading to around 15% speedup. |
