guix-commits
[Top][All Lists]
Advanced

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

03/03: gnu: tar: Work around a cross-compilation issue.


From: Ludovic Courtès
Subject: 03/03: gnu: tar: Work around a cross-compilation issue.
Date: Sun, 22 Apr 2018 16:41:21 -0400 (EDT)

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

commit c77835db04ee20c0afe20600dc8f91a67bc2421e
Author: Ludovic Courtès <address@hidden>
Date:   Sun Apr 22 22:39:49 2018 +0200

    gnu: tar: Work around a cross-compilation issue.
    
    * gnu/packages/base.scm (tar)[arguments]: Add #:configure-flags when
    cross-compiling.
---
 gnu/packages/base.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index a163018..6d9f019 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -177,7 +177,7 @@ implementation offers several extensions over the standard 
utility.")
    (build-system gnu-build-system)
    ;; Note: test suite requires ~1GiB of disk space.
    (arguments
-    '(#:phases (modify-phases %standard-phases
+    `(#:phases (modify-phases %standard-phases
                  (add-before 'build 'set-shell-file-name
                    (lambda* (#:key inputs #:allow-other-keys)
                      ;; Do not use "/bin/sh" to run programs.
@@ -187,6 +187,12 @@ implementation offers several extensions over the standard 
utility.")
                           (string-append bash "/bin/sh")))
                        #t))))
 
+      ;; Work around a cross-compilation bug whereby libgnu.a would provide
+      ;; '__mktime_internal', which conflicts with the one in libc.a.
+      ,@(if (%current-target-system)
+            `(#:configure-flags '("gl_cv_func_working_mktime=yes"))
+            '())
+
       ;; Test #92 "link mismatch" expects "a/z: Not linked to a/y" but gets
       ;; "a/y: Not linked to a/z" and fails, presumably due to differences in
       ;; the order in which 'diff' traverses directories.  That leads to a



reply via email to

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