guix-commits
[Top][All Lists]
Advanced

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

01/04: gnu: rdma-core: Fix cross-compiling.


From: guix-commits
Subject: 01/04: gnu: rdma-core: Fix cross-compiling.
Date: Mon, 28 Mar 2022 14:35:50 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit abd8286480ea94a07440bf49a7abe8fb03cd1737
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 28 18:54:20 2022 +0300

    gnu: rdma-core: Fix cross-compiling.
    
    * gnu/packages/linux.scm (rdma-core)[arguments]: Add configure-flag when
    cross-compiling to find pkg-config.
---
 gnu/packages/linux.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 72eb106ec2..6779552725 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -6219,6 +6219,14 @@ from the ntfs-3g package.  It is meant to be used in 
initrds.")
        ;; to do the same for consistency.
        #:configure-flags (list "-GNinja"
 
+                               ,@(if (%current-target-system)
+                                   `((string-append
+                                       "-DPKG_CONFIG_EXECUTABLE="
+                                       (search-input-file
+                                         %build-inputs
+                                         (string-append "/bin/"
+                                                        
,(pkg-config-for-target)))))
+                                   '())
                                (string-append "-DRST2MAN_EXECUTABLE="
                                               (assoc-ref %build-inputs
                                                          "python-docutils")



reply via email to

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