Changeset 1fedb6d in clfs-sysroot for BOOK/final-system/common


Ignore:
Timestamp:
Jun 16, 2006, 4:58:39 PM (19 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
9748f02
Parents:
795a4b8
Message:

r3943@server (orig r1772): jciccone | 2006-06-16 15:32:03 -0700
Added information about cross-compiling perl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/perl.xml

    r795a4b8 r1fedb6d  
    2626    <title>Installation of Perl</title>
    2727
    28     <important os="w1"><para>Information on cross-compiling perl has not been added yet.</para></important>
    29 
    30     <para os="a00">Before starting to configure, create a basic
    31     <filename>/etc/hosts</filename> file which will be referenced in one
    32     of Perl's configuration files as well as being used used by the testsuite
    33     if you run that.</para>
    34 
    35 <screen os="a01"><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
    36 
    37     <para os="a">To have full control over the way Perl is set up, run the
    38     interactive <command>Configure</command> script and hand-pick the way
    39     this package is built. If the defaults it auto-detects are suitable,
    40     prepare Perl for compilation with:</para>
    41 
    42 <screen os="b"><userinput>./configure.gnu --prefix=/usr \
    43    -Dman1dir=/usr/share/man/man1 \
    44    -Dman3dir=/usr/share/man/man3 \
    45    -Dpager="/bin/less -isR"</userinput></screen>
    46 
    47     <variablelist os="c">
    48       <title>The meaning of the configure option:</title>
    49 
    50       <varlistentry os="c1">
    51         <term><parameter>-Dpager="/bin/less -isR"</parameter></term>
    52         <listitem>
    53           <para>This corrects an error in the way that <command>perldoc</command>
    54           invokes the <command>less</command> program.</para>
    55         </listitem>
    56       </varlistentry>
    57       <varlistentry os="c2">
    58         <term><parameter>-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3</parameter></term>
    59         <listitem>
    60           <para>Since Groff is not installed yet,
    61           <command>configure.gnu</command> thinks that we do not want
    62           man pages for Perl. Issuing these parameters overrides this decision.</para>
    63         </listitem>
    64       </varlistentry>
    65     </variablelist>
    66 
    67     <para os="d">Compile the package:</para>
    68 
    69 <screen os="e"><userinput>make</userinput></screen>
    70 
    71     <para os="h">To test the results, issue:
    72     <userinput>make test</userinput>.</para>
    73 
    74     <para os="j">Install the package:</para>
    75 
    76 <screen os="k"><userinput>make install</userinput></screen>
     28    <para os="p1">The following patch fixes issues with perl and
     29    cross-compiling:</para>
     30
     31<screen os="p2"><userinput>patch -Np1 -i ../&perl-cross_compile-patch;</userinput></screen>
     32
     33    <para os="a">The Cross directory contains a Makefile for cross-compiling.</para>
     34
     35<screen os="b"><userinput>cd Cross</userinput></screen>
     36
     37    <para os="c">Compile the package:</para>
     38
     39<screen os="d"><userinput>make ARCH= CROSS_COMPILE="${LFS_TARGET}-"</userinput></screen>
     40
     41    <para os="e">Install the package:</para>
     42
     43<screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
    7744
    7845  </sect2>
Note: See TracChangeset for help on using the changeset viewer.