Files
poky/meta/recipes-devtools/perl-cross/files
Khem Raj 0f974fd6a5 perl-cross: Correct function signatures in configure_func.sh
There are latent issues in function detection which were succeeding due
to compiler being lenient, but this is fast changing e.g. clang-15 has
turned the -Wimplicit-function-declaration into error which ends up
failing these tests and rightly so. Therefore try to improve the tests
to have proper prototypes known during compilation

(From OE-Core rev: 330163295f14d1b29260059b65f7ec14e8a41e23)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-08-12 19:22:04 +01:00
..

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.