guix-commits
[Top][All Lists]
Advanced

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

36/64: gnu: bdb: Fix cross-compilation.


From: guix-commits
Subject: 36/64: gnu: bdb: Fix cross-compilation.
Date: Fri, 23 Aug 2019 04:10:21 -0400 (EDT)

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

commit 55cbf2714eb7923f231f7b6ba142659ccecafff4
Author: Mathieu Othacehe <address@hidden>
Date:   Thu Aug 22 14:48:33 2019 +0200

    gnu: bdb: Fix cross-compilation.
    
    * gnu/packages/dbm.scm (bdb-4.8)[arguments]: Pass host argument to configure
    when cross-compiling.
---
 gnu/packages/dbm.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/dbm.scm b/gnu/packages/dbm.scm
index 5191c47..84c5817 100644
--- a/gnu/packages/dbm.scm
+++ b/gnu/packages/dbm.scm
@@ -55,7 +55,7 @@
        #:phases
        (modify-phases %standard-phases
          (replace 'configure
-           (lambda* (#:key outputs #:allow-other-keys)
+           (lambda* (#:key target outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out"))
                    (doc (assoc-ref outputs "doc")))
                ;; '--docdir' is not honored, so we need to patch.
@@ -74,6 +74,10 @@
                              '("--build=aarch64-unknown-linux-gnu")
                              '())
 
+                       ,@(if (%current-target-system)         ; cross building
+                             '((string-append "--host=" target))
+                             '())
+
                        ;; Remove 7 MiB of .a files.
                        "--disable-static"
 



reply via email to

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