diff options
| author | Zheng Junjie <z572@z572.online> | 2025-02-12 19:35:35 +0800 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-07-18 20:17:29 +0200 |
| commit | 5d9a084092af7c4f0cb70c2a9770fa2886c5adbe (patch) | |
| tree | e87113e0b605175a0c9b41c2249ee84c11375627 /gnu | |
| parent | 6e9815a84fa6be070108a3599001ddec2ac1b3ab (diff) | |
gnu: bash-static: Fix cross-compiling for glibc@2.41.
* gnu/packages/bash.scm (static-bash)[arguments]<#:configure-flags>: When
cross-compiling, Add bash_cv_getenv_redef=no.
Change-Id: I8105e91831dfdcce4e5494b3588ab8431dbaf5a8
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/bash.scm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index d31fa5ad6af..055e6fb2435 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -326,6 +326,16 @@ without modification.") (arguments (substitute-keyword-arguments `(#:allowed-references ("out") ,@(package-arguments bash)) + ((#:configure-flags flags '()) + ;; XXX: when Update glibc from 2.40 to 2.41, + ;; need this flag to compile successfully. + ;; Otherwise, an error will be reported: + ;; multiple definition of `getenv' + (if (%current-target-system) + `(cons + "bash_cv_getenv_redef=no" + ,flags) + flags)) ((#:phases phases) #~(modify-phases #$phases (add-after 'strip 'remove-everything-but-the-binary |
