diff options
author | Marius Bakke <mbakke@fastmail.com> | 2020-01-27 22:01:16 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2020-02-03 15:29:14 +0100 |
commit | f847d9dcda9bf0efc169601ccb8a1f9546819275 (patch) | |
tree | ec03bffb952f0fd752f7145d3bcbdea6fb57bf46 /gnu | |
parent | a6046f24ddd34b44418a2d1b02a84ddcc61b47aa (diff) | |
download | guix-f847d9dcda9bf0efc169601ccb8a1f9546819275.tar.gz |
gnu: libaio: Fix cross-compilation.
* gnu/packages/linux.scm (libaio)[arguments]: When cross-compiling, set CC to the cross-gcc in #:make-flags.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/linux.scm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 569ba34aa4..e47f731f15 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 |