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

Cross-compiling perl

Alex Suykov
January 6, 2009 09:50
Cross-compiling perl
Message ID:
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. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About