diff options
author | Raphaël Mélotte <raphael.melotte@posteo.net> | 2018-09-03 10:20:06 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-09-03 23:41:08 +0200 |
commit | 5108c18e7e163c3b45568f1f4c3416581a2cea19 (patch) | |
tree | 776b60dec4e330dcd7bb91120df10c681a5b0a91 | |
parent | 38fe6449c0d1fac6f64fcbabfbc94943752830b9 (diff) |
gnu: perl: Add support for cross-compilation
* gnu/packages/perl.scm (perl): use cross-libc when cross-compiling
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r-- | gnu/packages/perl.scm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 4d70e019b9..b10be9567d 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -48,6 +48,7 @@ #:use-module (guix utils) ;substitute-keyword-arguments for perl-5.26.2 #:use-module (gnu packages base) #:use-module (gnu packages compression) + #:use-module (gnu packages cross-base) #:use-module (gnu packages freedesktop) #:use-module (gnu packages perl-check) #:use-module (gnu packages perl-web) @@ -79,7 +80,7 @@ "perl-reproducible-build-date.patch")))) (build-system gnu-build-system) (arguments - '(#:tests? #f + `(#:tests? #f #:configure-flags (let ((out (assoc-ref %outputs "out")) (libc (assoc-ref %build-inputs "libc"))) @@ -128,7 +129,10 @@ (add-after 'install 'remove-extra-references (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) - (libc (assoc-ref inputs "libc")) + (libc (assoc-ref inputs + (if ,(%current-target-system) + "cross-libc" + "libc"))) (config1 (car (find-files (string-append out "/lib/perl5") "^Config_heavy\\.pl$"))) (config2 (find-files (string-append out "/lib/perl5") |