[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/19: gnu: libaio: Fix cross-compilation.
From: |
guix-commits |
Subject: |
03/19: gnu: libaio: Fix cross-compilation. |
Date: |
Mon, 3 Feb 2020 09:30:23 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit f847d9dcda9bf0efc169601ccb8a1f9546819275
Author: Marius Bakke <address@hidden>
AuthorDate: Mon Jan 27 22:01:16 2020 +0100
gnu: libaio: Fix cross-compilation.
* gnu/packages/linux.scm (libaio)[arguments]: When cross-compiling, set CC
to
the cross-gcc in #:make-flags.
---
gnu/packages/linux.scm | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 569ba34..e47f731 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3838,8 +3838,14 @@ Linux Device Mapper multipathing driver:
"0ajhzbqjwsmz51gwccfyw6w9k4j4gmxcl2ph30sfn2gxv0d8gkv2"))))
(build-system gnu-build-system)
(arguments
- '(#:make-flags
- (list "CC=gcc" (string-append "prefix=" %output))
+ `(#:make-flags
+ (let ((target ,(%current-target-system)))
+ (list (string-append "prefix=" %output)
+ (string-append
+ "CC=" (if target
+ (string-append (assoc-ref %build-inputs "cross-gcc")
+ "/bin/" target "-gcc")
+ "gcc"))))
#:test-target "partcheck" ; need root for a full 'check'
#:phases
(modify-phases %standard-phases (delete 'configure)))) ; no configure
script
- branch core-updates updated (0684a2f -> 584d08c), guix-commits, 2020/02/03
- 05/19: gnu: checkpolicy: Fix cross-compilation., guix-commits, 2020/02/03
- 02/19: gnu: llvm@3: Do not inherit 'install-opt-viewer' phase., guix-commits, 2020/02/03
- 03/19: gnu: libaio: Fix cross-compilation.,
guix-commits <=
- 06/19: gnu: RHash: Move custom configure logic to #:configure-flags., guix-commits, 2020/02/03
- 08/19: gnu: ninja: Update to 1.10.0., guix-commits, 2020/02/03
- 09/19: gnu: OpenLDAP: Update to 2.4.49., guix-commits, 2020/02/03
- 10/19: gnu: SQLite: Update to 3.31.1., guix-commits, 2020/02/03
- 14/19: gnu: pciutils: Update to 3.6.4., guix-commits, 2020/02/03
- 04/19: gnu: libsepol: Fix cross-compilation., guix-commits, 2020/02/03
- 15/19: gnu: python-pytest: Update to 5.3.5., guix-commits, 2020/02/03
- 18/19: gnu: libtasn1: Update to 4.16.0., guix-commits, 2020/02/03
- 01/19: gnu: python2-importlib-metadata: Fix circular dependency., guix-commits, 2020/02/03
- 07/19: gnu: ninja: Do not use unstable tarball., guix-commits, 2020/02/03