Details on this package are located in Section 6.40.2, “Contents of Perl.”
The Perl package contains the Practical Extraction and Report Language.
First, fix a build issue that arises only in the LFS environment:
sed -e '9751 a#ifndef PERL_IN_XSUB_RE' \ -e '9808 a#endif' \ -i regexec.c
Prepare Perl for compilation:
sh Configure -des -Dprefix=/tools -Dlibs=-lm
Build the package:
make
Although Perl comes with a test suite, it would be better to wait until it is installed in the next chapter.
Only a few of the utilities and libraries need to be installed at this time:
cp -v perl cpan/podlators/scripts/pod2man /tools/bin mkdir -pv /tools/lib/perl5/5.26.0 cp -Rv lib/* /tools/lib/perl5/5.26.0
Details on this package are located in Section 6.40.2, “Contents of Perl.”