diff options
author | Josselin Poiret <dev@jpoiret.xyz> | 2023-05-22 11:04:12 +0200 |
---|---|---|
committer | Josselin Poiret <dev@jpoiret.xyz> | 2023-07-13 18:20:01 +0200 |
commit | 85ebfcf4ffe5dda6f1eceb00b6afdac3239c0a31 (patch) | |
tree | ded825a52e2e5cebe3f7a013b086024d03d24825 /gnu/packages/cross-base.scm | |
parent | ff208b4b629a15ce0b72555db1cda9fcb7eec1c9 (diff) | |
download | guix-85ebfcf4ffe5dda6f1eceb00b6afdac3239c0a31.tar.gz guix-85ebfcf4ffe5dda6f1eceb00b6afdac3239c0a31.zip |
gnu: glibc/hurd-headers: Properly cross-build.
* gnu/packages/base.scm (glibc/hurd-headers): Rely on cross-mig, and remove
hardcoded configure flag `--host=i586-pc-gnu`.
* gnu/packages/cross-base.scm (cross-kernel-headers*): Add `--host` and
`--build` configure flags.
Diffstat (limited to 'gnu/packages/cross-base.scm')
-rw-r--r-- | gnu/packages/cross-base.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index 8d0b41180b..e5fc4ba8b5 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2019 Carl Dong <contact@carldong.me> ;;; Copyright © 2020 Mathieu Othacehe <m.othacehe@gmail.com> ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> +;;; Copyright © 2023 Josselin Poiret <dev@jpoiret.xyz> ;;; ;;; This file is part of GNU Guix. ;;; @@ -492,7 +493,11 @@ the base compiler. Use XBINUTILS as the associated cross-Binutils." hurd "/include"))) (for-each (cut setenv <> cpath) ',%gcc-cross-include-paths) - #t))))))) + #t))))) + ((#:configure-flags flags) + `(cons* ,(string-append "--build=" (%current-system)) + ,(string-append "--host=" target) + ,flags)))) (propagated-inputs `(("gnumach-headers" ,xgnumach-headers) ("hurd-headers" ,xhurd-headers))) |