Archived
1
0
Fork 0

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:
Mathieu Othacehe 2019-07-05 18:14:12 +02:00
parent 5fd395db3f
commit 2b9ef6e5ef
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -11,6 +11,7 @@
;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2019 Meiyo Peng <meiyo.peng@gmail.com>
;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@ -356,6 +357,14 @@ written by Paul Haahr and Byron Rakitzis.")
(arguments
`(#: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
(lambda _
;; Take care of pwd