gnu: stfl: Fix cross-building.
* gnu/packages/ncurses.scm (stfl)[arguments]: Add a make-flag to use the correct compiler when cross-compiling. Remove trailing #t from phases. Change-Id: I79aaf2472439b74e66e0e178f3d7f1bd2af62d7e
This commit is contained in:
		
							parent
							
								
									fb05c43a36
								
							
						
					
					
						commit
						bd90c7d462
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -330,8 +330,9 @@ of your system.")
 | 
				
			||||||
          "1460d5lc780p3q38l3wc9jfr2a7zlyrcra0li65aynj738cam9yl"))))
 | 
					          "1460d5lc780p3q38l3wc9jfr2a7zlyrcra0li65aynj738cam9yl"))))
 | 
				
			||||||
    (build-system gnu-build-system)
 | 
					    (build-system gnu-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     '(#:tests? #f ; no test target
 | 
					     `(#:tests? #f ; no test target
 | 
				
			||||||
       #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
 | 
					       #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out"))
 | 
				
			||||||
 | 
					                          (string-append "CC=" ,(cc-for-target)))
 | 
				
			||||||
       #:phases
 | 
					       #:phases
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
         (delete 'configure) ; there is no configure script
 | 
					         (delete 'configure) ; there is no configure script
 | 
				
			||||||
| 
						 | 
					@ -339,8 +340,7 @@ of your system.")
 | 
				
			||||||
         (add-before 'build 'patch-ncursesw
 | 
					         (add-before 'build 'patch-ncursesw
 | 
				
			||||||
           (lambda _
 | 
					           (lambda _
 | 
				
			||||||
             (substitute* "stfl_internals.h"
 | 
					             (substitute* "stfl_internals.h"
 | 
				
			||||||
               (("ncursesw/") ""))
 | 
					               (("ncursesw/") ""))))
 | 
				
			||||||
             #t))
 | 
					 | 
				
			||||||
         (add-after 'install 'install-missing-symlink
 | 
					         (add-after 'install 'install-missing-symlink
 | 
				
			||||||
           (lambda* (#:key outputs #:allow-other-keys)
 | 
					           (lambda* (#:key outputs #:allow-other-keys)
 | 
				
			||||||
             (let* ((out (assoc-ref outputs "out"))
 | 
					             (let* ((out (assoc-ref outputs "out"))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue