[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/33: gnu: pkg-config: Fix cross-compilation.
From: |
guix-commits |
Subject: |
16/33: gnu: pkg-config: Fix cross-compilation. |
Date: |
Tue, 24 Sep 2019 02:17:48 -0400 (EDT) |
mothacehe pushed a commit to branch core-updates-next
in repository guix.
commit 032974aae621e871c86c9654f94de9c07e2fde43
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 | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/pkg-config.scm b/gnu/packages/pkg-config.scm
index 6fc19a9..329a636 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,17 @@
(base32
"14fmwzki1rlz8bs2p810lk6jqdxsk966d8drgsjmi54cd00rrikg"))))
(build-system gnu-build-system)
- (arguments `(#:configure-flags '("--with-internal-glib")))
+ (arguments
+ `(#:configure-flags
+ '("--with-internal-glib"
+ ;; Those variables are guessed incorrectly when cross-compiling.
+ ;; See:
https://developer.gimp.org/api/2.0/glib/glib-cross-compiling.html.
+ ,@(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")
- 21/33: gnu: guile-xcb: Fix cross-compilation., (continued)
- 21/33: gnu: guile-xcb: Fix cross-compilation., guix-commits, 2019/09/24
- 30/33: gnu: console-setup: Fix cross-compilation., guix-commits, 2019/09/24
- 15/33: gnu: tcsh: Fix cross-compilation., guix-commits, 2019/09/24
- 14/33: gnu: libarchive: Fix cross-compilation., guix-commits, 2019/09/24
- 18/33: gnu: texinfo: Fix cross-compilation., guix-commits, 2019/09/24
- 26/33: gnu: mkfontdir: Fix aarch64 cross-compilation., guix-commits, 2019/09/24
- 22/33: gnu: libgpg-error: Fix cross compilation., guix-commits, 2019/09/24
- 29/33: gnu: procps: Fix cross-compilation., guix-commits, 2019/09/24
- 20/33: gnu: texinfo-4: Fix cross compilation, guix-commits, 2019/09/24
- 28/33: gnu: nghttp2: Fix cross-compilation., guix-commits, 2019/09/24
- 16/33: gnu: pkg-config: Fix cross-compilation.,
guix-commits <=
- 19/33: gnu: texinfo-5: Fix cross-compilation., guix-commits, 2019/09/24
- 25/33: gnu: libsamplerate: Fix aarch64 cross-compilation., guix-commits, 2019/09/24
- 17/33: gnu: alsa-utils: Fix cross-compilation., guix-commits, 2019/09/24
- 11/33: gnu: mit-krb5: Fix cross-compilation., guix-commits, 2019/09/24
- 31/33: gnu: mdadm: Fix cross-compilation., guix-commits, 2019/09/24
- 32/33: gnu: bc: Fix cross-compilation., guix-commits, 2019/09/24