guix-commits
[Top][All Lists]
Advanced

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

04/05: gnu: coreutils: Fix cross-compilation to i586-pc-gnu.


From: guix-commits
Subject: 04/05: gnu: coreutils: Fix cross-compilation to i586-pc-gnu.
Date: Tue, 31 Mar 2020 08:56:07 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 67cbfeae30eb9b7c56145bf72582d71eea177370
Author: Ludovic Courtès <address@hidden>
AuthorDate: Tue Mar 31 14:16:53 2020 +0200

    gnu: coreutils: Fix cross-compilation to i586-pc-gnu.
    
    Until now cross-compilation would fail with:
    
      i586-pc-gnu-ld: src/copy.o: undefined reference to symbol 'file_chauthor'
      i586-pc-gnu-ld: 
/gnu/store/…-glibc-cross-i586-pc-gnu-2.29/lib/libhurduser.so.0.3: error adding 
symbols: DSO missing from command line
      collect2: error: ld returned 1 exit status
    
    * gnu/packages/base.scm (coreutils)[arguments]: When 'hurd-target?', add
     #:configure-flags.
---
 gnu/packages/base.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index a49ea25..4827f80 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -330,6 +330,13 @@ used to apply commands with arbitrarily long arguments.")
    (outputs '("out" "debug"))
    (arguments
     `(#:parallel-build? #f            ; help2man may be called too early
+
+      ;; 'cp' and others refer to 'file_chauthor' so they must link directly
+      ;; against libhurduser.
+      ,@(if (hurd-target?)
+            '(#:configure-flags '("LIBS=-lhurduser"))
+            '())
+
       #:phases (modify-phases %standard-phases
                  (add-before 'build 'patch-shell-references
                    (lambda _



reply via email to

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