guix-commits
[Top][All Lists]
Advanced

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

27/31: gnu: pkg-config: Fix cross-compilation.


From: guix-commits
Subject: 27/31: gnu: pkg-config: Fix cross-compilation.
Date: Mon, 8 Jul 2019 05:43:42 -0400 (EDT)

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

commit 7026595556510f6123b96a698e0e753b8ca15ff2
Author: Mathieu Othacehe <address@hidden>
Date:   Fri Jul 5 18:26:48 2019 +0200

    gnu: pkg-config: Fix cross-compilation.
    
    * gnu/packages/pkg-config.scm (%pkg-config)[arguments]: Add configure-flags
    to disable tests that fail when cross-compiling.
---
 gnu/packages/pkg-config.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/pkg-config.scm b/gnu/packages/pkg-config.scm
index 6fc19a9..0425854 100644
--- a/gnu/packages/pkg-config.scm
+++ b/gnu/packages/pkg-config.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2012, 2013, 2014, 2016 Ludovic Courtès <address@hidden>
+;;; Copyright © 2019 Mathieu Othacehe <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -48,7 +49,15 @@
              (base32
               "14fmwzki1rlz8bs2p810lk6jqdxsk966d8drgsjmi54cd00rrikg"))))
    (build-system gnu-build-system)
-   (arguments `(#:configure-flags '("--with-internal-glib")))
+   (arguments
+    `(#:configure-flags
+      '("--with-internal-glib"
+        ,@(if (%current-target-system)
+              '("glib_cv_stack_grows=no"
+                "glib_cv_uscore=no"
+                "ac_cv_func_posix_getpwuid_r=yes"
+                "ac_cv_func_posix_getgrgid_r=yes")
+              '()))))
    (native-search-paths
     (list (search-path-specification
            (variable "PKG_CONFIG_PATH")



reply via email to

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