gnu: tcsh: Fix cross-compilation.
* gnu/packages/shells.scm (tcsh)[arguments]: Replace "cc" by "gcc" as native gethost compiler when cross-compiling.
This commit is contained in:
parent
5fd395db3f
commit
2b9ef6e5ef
1 changed files with 9 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
||||||
;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
|
;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
|
||||||
;;; Copyright © 2019 Meiyo Peng <meiyo.peng@gmail.com>
|
;;; Copyright © 2019 Meiyo Peng <meiyo.peng@gmail.com>
|
||||||
;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
|
;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
|
||||||
|
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -356,6 +357,14 @@ written by Paul Haahr and Byron Rakitzis.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
'((add-before 'configure 'set-cross-cc
|
||||||
|
(lambda _
|
||||||
|
(substitute* "configure"
|
||||||
|
(("CC_FOR_GETHOST=\"cc\"")
|
||||||
|
"CC_FOR_GETHOST=\"gcc\""))
|
||||||
|
#t)))
|
||||||
|
'())
|
||||||
(add-before 'check 'patch-test-scripts
|
(add-before 'check 'patch-test-scripts
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Take care of pwd
|
;; Take care of pwd
|
||||||
|
|
Reference in a new issue