guix-commits
[Top][All Lists]
Advanced

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

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


From: guix-commits
Subject: 26/61: gnu: tcsh: Fix cross-compilation.
Date: Wed, 21 Aug 2019 04:24:52 -0400 (EDT)

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

commit 220b6954d70aef0890ff4e780a574b4302e858b2
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 0579c16..cf57815 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]