diff options
Diffstat (limited to 'chapter05/perl.xml')
-rw-r--r-- | chapter05/perl.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chapter05/perl.xml b/chapter05/perl.xml index f59a2f7f8..dc279539a 100644 --- a/chapter05/perl.xml +++ b/chapter05/perl.xml @@ -48,13 +48,19 @@ <screen><userinput remap="pre">patch -Np1 -i ../&perl-libc-patch;</userinput></screen> + <para>The configuration script needs to be adjusted to run in the restricted + LFS environment:</para> + +<screen><userinput remap="pre">chmod -v 0775 Configure +sed -i -e '/Restore computed paths/i libswanted=""' Configure</userinput></screen> + <para>Prepare Perl for compilation:</para> <screen><userinput remap="configure">sh Configure -des -Dprefix=/tools</userinput></screen> <para>Build the package:</para> -<screen><userinput remap="make">make</userinput></screen> +<screen><userinput remap="make">make CLDFLAGS='-lm'</userinput></screen> <para>Although Perl comes with a test suite, it would be better to wait until it is insalled in the next chapter.</para> |