[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: gnu: make-bootstrap: Adjust for GCC 7.
From: |
guix-commits |
Subject: |
03/09: gnu: make-bootstrap: Adjust for GCC 7. |
Date: |
Tue, 2 Jul 2019 12:17:41 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 25a54eb04d89df3bd7177c3cd91f3a61bf8768ee
Author: Marius Bakke <address@hidden>
Date: Fri Jun 21 09:37:21 2019 +0200
gnu: make-bootstrap: Adjust for GCC 7.
* gnu/packages/make-bootstrap.scm
(package-with-relocatable-glibc)[native-inputs]:
Add SEARCH-PATHS to CROSS-GCC, and NATIVE-SEARCH-PATHS to the native GCC.
---
gnu/packages/make-bootstrap.scm | 25 +++++++++++++++++++++----
1 file changed, 21 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index 561a286..df6b828 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -106,16 +106,33 @@ for `sh' in $PATH, and without nscd, and with static NSS
modules."
(define (native-inputs)
(if (%current-target-system)
- (let ((target (%current-target-system)))
- `(("cross-gcc" ,(cross-gcc target
- #:xbinutils (cross-binutils target)
- #:libc (cross-bootstrap-libc)))
+ (let* ((target (%current-target-system))
+ (xgcc (cross-gcc
+ target
+ #:xbinutils (cross-binutils target)
+ #:libc (cross-bootstrap-libc))))
+ `(("cross-gcc" ,(package
+ (inherit xgcc)
+ (search-paths
+ ;; Ensure the cross libc headers appears on the
+ ;; C++ system header search path.
+ (cons (search-path-specification
+ (variable "CROSS_CPLUS_INCLUDE_PATH")
+ (files '("include")))
+ (package-search-paths gcc)))))
("cross-binutils" ,(cross-binutils target))
,@(%final-inputs)))
`(("libc" ,(glibc-for-bootstrap))
("libc:static" ,(glibc-for-bootstrap) "static")
("gcc" ,(package (inherit gcc)
(outputs '("out")) ;all in one so libgcc_s is easily found
+ (native-search-paths
+ ;; Set CPLUS_INCLUDE_PATH so GCC is able to find the libc
+ ;; C++ headers.
+ (cons (search-path-specification
+ (variable "CPLUS_INCLUDE_PATH")
+ (files '("include")))
+ (package-native-search-paths gcc)))
(inputs
`(;; Distinguish the name so we can refer to it below.
("bootstrap-libc" ,(glibc-for-bootstrap))
- branch core-updates updated (8aaf42c -> 5f3f703), guix-commits, 2019/07/02
- 03/09: gnu: make-bootstrap: Adjust for GCC 7.,
guix-commits <=
- 04/09: gnu: bootstrap-tarballs: Don't include the native Mes when cross-compiling., guix-commits, 2019/07/02
- 08/09: gnu: linux-libre-headers: Update to 4.19.56., guix-commits, 2019/07/02
- 07/09: gnu: commencement: Remove outdated comment., guix-commits, 2019/07/02
- 05/09: gnu: gettext: Update to 0.20.1., guix-commits, 2019/07/02
- 06/09: gnu: libuninameslist: Update to 20190701., guix-commits, 2019/07/02
- 02/09: gnu: make-bootstrap: Restore cross-compilation workarounds., guix-commits, 2019/07/02
- 09/09: gnu: glibc: Update to 2.29., guix-commits, 2019/07/02
- 01/09: gnu: make-bootstrap: Remove obsolete header file., guix-commits, 2019/07/02