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

Cross-compiling perl

From:
Alex Suykov
Date:
January 6, 2009 09:50
Subject:
Cross-compiling perl
Message ID:
20090106174839.GA2534@versa.bugs
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.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About