diff options
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/perl.xml | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/chapter08/perl.xml b/chapter08/perl.xml index fd5e07f06..7d27118ab 100644 --- a/chapter08/perl.xml +++ b/chapter08/perl.xml @@ -49,25 +49,26 @@ <screen><userinput remap="pre">export BUILD_ZLIB=False export BUILD_BZIP2=0</userinput></screen> -<!-- - <para>Apply a patch to allow the Errno.pm module and the h2ph - program to build correctly when building with GCC 5:</para> - -<screen><userinput remap="pre">patch -Np1 -i ../&perl-gcc5-fixes-patch;</userinput></screen> ---> <para>To have full control over the way Perl is set up, you can remove the <quote>-des</quote> options from the following command and hand-pick the way this package is built. Alternatively, use the command exactly as below to use the defaults that Perl auto-detects:</para> -<screen><userinput remap="configure">sh Configure -des -Dprefix=/usr \ - -Dvendorprefix=/usr \ - -Dman1dir=/usr/share/man/man1 \ - -Dman3dir=/usr/share/man/man3 \ - -Dpager="/usr/bin/less -isR" \ - -Duseshrplib \ - -Dusethreads</userinput></screen> + <screen><userinput remap="configure">sh Configure -des \ + -Dprefix=/usr \ + -Dvendorprefix=/usr \ + -Dprivlib=/usr/share/perl5/core_perl \ + -Darchlib=/usr/lib/perl5/&perl-version-min;/core_perl \ + -Dsitelib=/usr/share/perl5/site_perl \ + -Dsitearch=/usr/lib/perl5/&perl-version-min;/site_perl \ + -Dvendorlib=/usr/share/perl5/vendor_perl \ + -Dvendorarch=/usr/lib/perl5/&perl-version-min;/vendor_perl \ + -Dman1dir=/usr/share/man/man1 \ + -Dman3dir=/usr/share/man/man3 \ + -Dpager="/usr/bin/less -isR" \ + -Duseshrplib \ + -Dusethreads</userinput></screen> <variablelist> <title>The meaning of the configure options:</title> @@ -112,6 +113,17 @@ export BUILD_BZIP2=0</userinput></screen> </listitem> </varlistentry> + <varlistentry> + <term><parameter>-Dprivlib,-Darchlib,-Dsitelib,...</parameter></term> + <listitem> + <para>These settings define where Perl is looking for installed + modules. The LFS editors chose to put them in a directory structure + based on the Major.Minor version of Perl (&perl-version-min;) which + allows upgrading Perl to newer Patch levels (&perl-version;) without + the need to reinstall all of the modules again.</para> + </listitem> + </varlistentry> + </variablelist> <para>Compile the package:</para> |