develooper Front page | perl.dist | Postings from July 2009

[ Cross-compiling perl]

Nicholas Clark
July 14, 2009 15:05
[ Cross-compiling perl]
Message ID:
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, 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 <> -----

Delivery-date: Tue, 06 Jan 2009 17:50:35 +0000
Mailing-List: contact; run by ezmlm
Delivered-To: mailing list
Date: Tue, 6 Jan 2009 19:48:39 +0200
From: Alex Suykov <>
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.

Typical invocation for native build:
	make DESTDIR=... install

Typical invocation for cross-build:

	./configure --target=$target --sysroot=/mnt/target
	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/
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 for additional information.

----- End forwarded message ----- Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About