xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/perl-cross/files/README.md (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun**perl-cross** provides configure script, top-level Makefile
2*4882a593Smuzhiyunand some auxiliary files for [perl](http://www.perl.org),
3*4882a593Smuzhiyunwith the primary emphasis on cross-compiling the source.
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun    # Get perl and perl-cross sources
6*4882a593Smuzhiyun    curl -L -O http://www.cpan.org/src/5.0/perl-5.24.1.tar.gz
7*4882a593Smuzhiyun    curl -L -O https://github.com/arsv/perl-cross/releases/download/1.1.3/perl-cross-1.1.3.tar.gz
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun    # Unpack perl-cross over perl, overwriting Makefile
10*4882a593Smuzhiyun    tar -zxf perl-5.24.1.tar.gz
11*4882a593Smuzhiyun    cd perl-5.24.1
12*4882a593Smuzhiyun    tar --strip-components=1 -zxf ../perl-cross-1.1.3.tar.gz
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun    # Proceed as usual with most autoconfed packages
15*4882a593Smuzhiyun    ./configure --target=arm-linux-gnueabi --prefix=/usr -Duseshrplib
16*4882a593Smuzhiyun    make -j4
17*4882a593Smuzhiyun    make DESTDIR=/path/to/staging/dir install
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunUnlike mainline Perl, this configure never runs any target executables,
20*4882a593Smuzhiyunrelying solely on compile/link tests and pre-defined hints.
21*4882a593SmuzhiyunOn the flip side, it is only meant to run on resonably sane modern unix systems.
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunCheck [project pages](http://arsv.github.io/perl-cross/) for more info.
24*4882a593SmuzhiyunIn particular, [configure usage](http://arsv.github.io/perl-cross/usage.html)
25*4882a593Smuzhiyunlists available configure options.
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunPerl-cross is a free software licensed under the same terms
28*4882a593Smuzhiyunas the original perl source.
29*4882a593SmuzhiyunSee LICENSE, Copying and Artistic files.
30