configure and build perl with a cross-compiling toolchain

Alex Suykov ac87c83c6c separate vendorlibdir 2 years ago
cnf ac87c83c6c separate vendorlibdir 2 years ago
utils 328b610658 minor cleanup utils/Makefile 5 years ago
.gitignore 1442373e61 change pack name to perl-cross-V.tar.gz 7 years ago
0pack.sh f2ce06ad43 pack to 1.3.6 2 years ago
Artistic a4fcb1ef24 github support files 10 years ago
Copying a4fcb1ef24 github support files 10 years ago
LICENSE 7b12fbbe81 LICENSE and relevant changes in pack.sh 10 years ago
Makefile 7d74ff048c patches for 5-35.7 2 years ago
Makefile.config.SH f280b9ebae perl-compatible extensions lists in config.sh 4 years ago
README.md 02a9529b31 bump versions in README 7 years ago
TESTPACK.px 16f00028ef Handle (Scalar::)?List::Util in make testpack 5 years ago
TestInit.pm.testpack d602f3e3b0 testpack: top-level files must be in pack.sh 10 years ago
configure 392f6d30e5 comments 7 years ago
extlibs 87376cb55e remove duplicated libraries in extlibs 9 years ago
make_ext_Makefile.pl 4af38645ea perl 5.20.0 updates 9 years ago
miniperl_top 980998f7d1 patches for 5.31.2 4 years ago
statars f1d50a0c8c Fix build with --all-static 9 years ago

README.md

perl-cross provides configure script, top-level Makefile and some auxiliary files for perl,
with the primary emphasis on cross-compiling the source.

# Get perl and perl-cross sources
curl -L -O http://www.cpan.org/src/5.0/perl-5.24.1.tar.gz
curl -L -O https://github.com/arsv/perl-cross/releases/download/1.1.3/perl-cross-1.1.3.tar.gz

# Unpack perl-cross over perl, overwriting Makefile
tar -zxf perl-5.24.1.tar.gz
cd perl-5.24.1
tar --strip-components=1 -zxf ../perl-cross-1.1.3.tar.gz

# Proceed as usual with most autoconfed packages
./configure --target=arm-linux-gnueabi --prefix=/usr -Duseshrplib
make -j4
make DESTDIR=/path/to/staging/dir install

Unlike mainline Perl, this configure never runs any target executables,
relying solely on compile/link tests and pre-defined hints.
On the flip side, it is only meant to run on resonably sane modern unix systems.

Check project pages for more info.
In particular, configure usage lists available configure options.

Perl-cross is a free software licensed under the same terms as the original perl source.
See LICENSE, Copying and Artistic files.