[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#32624] [PATCH] gnu: perl: Add support for cross-compilation
From: |
Ludovic Courtès |
Subject: |
[bug#32624] [PATCH] gnu: perl: Add support for cross-compilation |
Date: |
Mon, 03 Sep 2018 23:48:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hi,
"Raphaël Mélotte" <address@hidden> skribis:
> This patch adds support for cross-compilation for perl.
> I only applied the suggestion made by Chris here:
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31221
>
> I tested it by running the following command, which builds perl successfully:
>
> sudo -E ./pre-inst-env guix build --target=i686-pc-linux-gnu perl
>
>
> From 1aa61436c6c85ebfdea9aceeb3949ac97fdbe289 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?= <address@hidden>
> Date: Mon, 3 Sep 2018 10:20:06 +0200
> Subject: [PATCH] gnu: perl: Add support for cross-compilation
>
> * gnu/packages/perl.scm (perl): use cross-libc when cross-compiling
I tested a variant of this patch with --target=arm-linux-gnueabihf.
During the ‘configure’ phase, I see:
--8<---------------cut here---------------start------------->8---
Checking for cross-compile
No targethost for running compiler tests against defined, running locally
--8<---------------cut here---------------end--------------->8---
Then the build completes but the result is a set of x86_64 (native)
binaries.
So I suppose some more work in needed to really cross-compile. Maybe we
need to pass specific configure flags?
(BTW, I think I already wrote this but you don’t need to cross-compile
if all you want is 32-bit binaries. Simply use “-s i686-linux” for
that.)
Thanks,
Ludo’.