guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

26/31: gnu: tcsh: Fix cross-compilation.


From: guix-commits
Subject: 26/31: gnu: tcsh: Fix cross-compilation.
Date: Mon, 8 Jul 2019 05:43:42 -0400 (EDT)

mothacehe pushed a commit to branch wip-cross-system
in repository guix.

commit 746d7d5ddb213a518937cb49a875270b8c34f564
Author: Mathieu Othacehe <address@hidden>
Date:   Fri Jul 5 18:14:12 2019 +0200

    gnu: tcsh: Fix cross-compilation.
    
    * gnu/packages/shells.scm (tcsh)[arguments]: Replace "cc" by "gcc" as
    native gethost compiler when cross-compiling.
---
 gnu/packages/shells.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index f8c0fdf..6eed893 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2017 Arun Isaac <address@hidden>
 ;;; Copyright © 2019 Meiyo Peng <address@hidden>
 ;;; Copyright © 2019 Timothy Sample <address@hidden>
+;;; Copyright © 2019 Mathieu Othacehe <address@hidden>
 ;;;
 ;;; 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]