Quantcast
Channel: perl.dist
Viewing all articles
Browse latest Browse all 80

[axs@ukr.net: Cross-compiling perl] by Nicholas Clark

$
0
0
Sorry for the slow reply, but perl-list really isn't the right list to
describe cross compiling to. It's unfortunate that at least one prominent
archive is about this. perl5-porters is the correct list, although right
now very few people are knowledgeable on the issues of cross compiling -
nearly everyone active builds perl natively.

(According to http://lists.cpan.org/, perl-dist is for
"Discussion list for splitting the Perl distribution to be more flexible."
But, really, it's a dormant list)

We'd welcome patches to help get working cross compiling merged back into the
main distribution.

Nicholas Clark

----- Forwarded message from Alex Suykov <axs@ukr.net> -----

Envelope-to: nick@ccl4.org
Delivery-date: Tue, 06 Jan 2009 17:50:35 +0000
Mailing-List: contact perl-dist-help@perl.org; run by ezmlm
Delivered-To: mailing list perl-dist@perl.org
Delivered-To: perl-dist@perl.org
Date: Tue, 6 Jan 2009 19:48:39 +0200
From: Alex Suykov <axs@ukr.net>
To: perl-dist@perl.org
Subject: Cross-compiling perl
User-Agent: Mutt/1.5.17 (2007-11-01)

A little announcement, I guess it may be interesting for some people on this list.

Some time ago I was confronted with the problem of cross-compiling perl. After
messing with supplied Configure for some time, I gave up and started writing
my own configure script. Now it's complete enough to be announced.

http://rootshell.be/~axs/perl/perl-5.10.0-cross-0.1.tar.gz

Typical invocation for native build:

./configure
make
make DESTDIR=... install

Typical invocation for cross-build:

./configure --target=$target --sysroot=/mnt/target
make
make DESTDIR=... install

If you're lucky, that's all you need to perform cross-build.
No SSH connection to target host is needed. On the other hand,
it is currently limited to relatively sane unix systems with
bash, GNU make and GNU toolchains, both native and cross.

The package consists of configure script itself, split into several files,
top-level Makefile and couple of fixed scripts (configpm, lib/Pod/Man.pm).
To use, just unpack into perl-5.10.0 source directory.

It's the first public release; don't be surprised to find nasty bugs.
Also, beware: some values that should be tested are just hardcoded (given
default values) for now.

See http://rootshell.be/~axs/perl for additional information.

----- End forwarded message -----

Viewing all articles
Browse latest Browse all 80

Trending Articles