guix-commits
[Top][All Lists]
Advanced

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

15/33: gnu: tcsh: Fix cross-compilation.


From: guix-commits
Subject: 15/33: gnu: tcsh: Fix cross-compilation.
Date: Tue, 24 Sep 2019 02:17:48 -0400 (EDT)

mothacehe pushed a commit to branch core-updates-next
in repository guix.

commit 2b9ef6e5ef13a4f17312633e514f034f7fd6f155
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]