[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#32624] [PATCH] gnu: perl: Add support for cross-compilation

From: Raphaël Mélotte
Subject: [bug#32624] [PATCH] gnu: perl: Add support for cross-compilation
Date: Tue, 04 Sep 2018 12:13:10 +0200
User-agent: mu4e 1.0; emacs 26.1

Ludovic Courtès writes:

> 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?

Ok, thanks for checking.
After some web searching and according to the following page, cross-compiling 
perl isn't an easy

Do you think it would be a good idea to package perl-cross and use it
when cross-compiling ?

The other option (giving -Dtargethost to the configure script) seems to require
a target host to be available with an ssh
server running.

> (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.)

Yes you mentioned it a few month ago, and that helped me a lot back
then :-)
I wanted to come back to trying to cross-compile some packages because
I find it interesting (the idea of remotely building packages for other 
is so cool).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]