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.
This commit is contained in:
		
							parent
							
								
									7c836efacc
								
							
						
					
					
						commit
						25a54eb04d
					
				
					 1 changed files with 21 additions and 4 deletions
				
			
		|  | @ -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 | ||||
|         (let* ((target (%current-target-system)) | ||||
|                (xgcc (cross-gcc | ||||
|                       target | ||||
|                       #:xbinutils (cross-binutils target) | ||||
|                                           #:libc (cross-bootstrap-libc))) | ||||
|                       #: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)) | ||||
|  |  | |||
		Reference in a new issue