diff options
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/bootstrap.scm | 3 | ||||
| -rw-r--r-- | gnu/packages/cross-base.scm | 6 | ||||
| -rw-r--r-- | gnu/packages/make-bootstrap.scm | 24 |
3 files changed, 22 insertions, 11 deletions
diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm index 3743abf9fee..33cbaa30ae6 100644 --- a/gnu/packages/bootstrap.scm +++ b/gnu/packages/bootstrap.scm | |||
| @@ -558,7 +558,8 @@ $out/bin/guile --version~%" | |||
| 558 | (name name) | 558 | (name name) |
| 559 | (system system) | 559 | (system system) |
| 560 | (build-inputs inputs) | 560 | (build-inputs inputs) |
| 561 | (build (cond ((target-riscv64?) | 561 | (build (cond ((or (target-riscv64?) |
| 562 | (target-hurd64?)) | ||
| 562 | raw-build-guile3) | 563 | raw-build-guile3) |
| 563 | (else raw-build))))) | 564 | (else raw-build))))) |
| 564 | 565 | ||
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index 5781341a878..83672ab383e 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm | |||
| @@ -641,9 +641,9 @@ the base compiler. Use XBINUTILS as the associated cross-Binutils." | |||
| 641 | ("hurd-headers" ,xhurd-headers) | 641 | ("hurd-headers" ,xhurd-headers) |
| 642 | ("hurd-minimal" ,xhurd-minimal))))) | 642 | ("hurd-minimal" ,xhurd-minimal))))) |
| 643 | 643 | ||
| 644 | (match target | 644 | (if (target-hurd? target) |
| 645 | ((or "i586-pc-gnu" "i586-gnu") xhurd-core-headers) | 645 | xhurd-core-headers |
| 646 | (_ xlinux-headers))) | 646 | xlinux-headers)) |
| 647 | 647 | ||
| 648 | (define* (cross-libc . args) | 648 | (define* (cross-libc . args) |
| 649 | (if (or (= (length args) 1) (contains-keyword? args)) | 649 | (if (or (= (length args) 1) (contains-keyword? args)) |
diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm index edc536bff4f..689d48d342b 100644 --- a/gnu/packages/make-bootstrap.scm +++ b/gnu/packages/make-bootstrap.scm | |||
| @@ -145,7 +145,10 @@ for `sh' in $PATH, and without nscd, and with static NSS modules." | |||
| 145 | target | 145 | target |
| 146 | #:xbinutils (cross-binutils target) | 146 | #:xbinutils (cross-binutils target) |
| 147 | #:libc (cross-bootstrap-libc target)))) | 147 | #:libc (cross-bootstrap-libc target)))) |
| 148 | `(("cross-gcc" ,(package | 148 | `(,@(%final-inputs) |
| 149 | ;; As versions for gcc and cross-gcc can differ, make sure to have | ||
| 150 | ;; cross-gcc behind gcc in CPLUS_INCLUDE_PATH. | ||
| 151 | ("cross-gcc" ,(package | ||
| 149 | (inherit xgcc) | 152 | (inherit xgcc) |
| 150 | (search-paths | 153 | (search-paths |
| 151 | ;; Ensure the cross libc headers appears on the | 154 | ;; Ensure the cross libc headers appears on the |
| @@ -154,8 +157,7 @@ for `sh' in $PATH, and without nscd, and with static NSS modules." | |||
| 154 | (variable "CROSS_CPLUS_INCLUDE_PATH") | 157 | (variable "CROSS_CPLUS_INCLUDE_PATH") |
| 155 | (files '("include"))) | 158 | (files '("include"))) |
| 156 | (package-search-paths gcc))))) | 159 | (package-search-paths gcc))))) |
| 157 | ("cross-binutils" ,(cross-binutils target)) | 160 | ("cross-binutils" ,(cross-binutils target)))) |
| 158 | ,@(%final-inputs))) | ||
| 159 | `(("libc" ,(glibc-for-bootstrap glibc)) | 161 | `(("libc" ,(glibc-for-bootstrap glibc)) |
| 160 | ("libc:static" ,(glibc-for-bootstrap glibc) "static") | 162 | ("libc:static" ,(glibc-for-bootstrap glibc) "static") |
| 161 | ("gcc" ,(gcc-for-bootstrap glibc)) | 163 | ("gcc" ,(gcc-for-bootstrap glibc)) |
| @@ -395,10 +397,15 @@ for `sh' in $PATH, and without nscd, and with static NSS modules." | |||
| 395 | ((#:configure-flags flags _ ...) | 397 | ((#:configure-flags flags _ ...) |
| 396 | flags))) | 398 | flags))) |
| 397 | #:make-flags | 399 | #:make-flags |
| 398 | (match (memq #:make-flags (package-arguments binutils)) | 400 | #~(append |
| 399 | ((#:make-flags flags _ ...) | 401 | #$(if (target-hurd64?) |
| 400 | flags) | 402 | #~'("lt_cv_prog_compiler_static_works=yes" |
| 401 | (_ #~'())) | 403 | "lt_cv_prog_compiler_static_works_CXX=yes") |
| 404 | #~'()) | ||
| 405 | #$(match (memq #:make-flags (package-arguments binutils)) | ||
| 406 | ((#:make-flags flags _ ...) | ||
| 407 | flags) | ||
| 408 | (_ #~'()))) | ||
| 402 | #:strip-flags #~'("--strip-all") | 409 | #:strip-flags #~'("--strip-all") |
| 403 | #:phases | 410 | #:phases |
| 404 | #~(modify-phases %standard-phases | 411 | #~(modify-phases %standard-phases |
| @@ -642,6 +649,9 @@ for `sh' in $PATH, and without nscd, and with static NSS modules." | |||
| 642 | 649 | ||
| 643 | #$@(if (target-hurd?) | 650 | #$@(if (target-hurd?) |
| 644 | #~("--disable-jit") | 651 | #~("--disable-jit") |
| 652 | #~()) | ||
| 653 | #$@(if (target-hurd64?) | ||
| 654 | #~("lt_cv_prog_compiler_static_works=yes") | ||
| 645 | #~()))) | 655 | #~()))) |
| 646 | ((#:phases phases '%standard-phases) | 656 | ((#:phases phases '%standard-phases) |
| 647 | #~(modify-phases #$phases | 657 | #~(modify-phases #$phases |
