aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/perl-inst.xml
diff options
context:
space:
mode:
authorAlex Gronenwoud <alex@linuxfromscratch.org>2003-08-18 20:53:34 +0000
committerAlex Gronenwoud <alex@linuxfromscratch.org>2003-08-18 20:53:34 +0000
commit69a52c12701352c5c76d8956cb9b0982baf21fdf (patch)
treeb0fd8f90bebf5353ccac9e927c7dabd0f6c6622a /chapter05/perl-inst.xml
parent2cff2cc411f336acc18f57066e30ea4fa215c8a8 (diff)
last text additions in chapter 5, added a section on stripping
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2672 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/perl-inst.xml')
-rw-r--r--chapter05/perl-inst.xml28
1 files changed, 20 insertions, 8 deletions
diff --git a/chapter05/perl-inst.xml b/chapter05/perl-inst.xml
index c8bc5244e..99292f86c 100644
--- a/chapter05/perl-inst.xml
+++ b/chapter05/perl-inst.xml
@@ -2,14 +2,26 @@
<sect2>
<title>Installation of Perl</title>
-<para><screen><userinput>patch -Np1 -i ../perl-&perl-version;-libc.patch
-chmod u+w hints/linux.sh
-echo 'static_ext="IO re Fcntl"' >> hints/linux.sh
-./configure.gnu --prefix=/stage1
-make perl
-make utilities
-cp perl /stage1/bin/perl
-cp pod/pod2man /stage1/bin
+<para>First adapt some hard-wired paths to the C library:</para>
+
+<para><screen><userinput>patch -Np1 -i ../perl-&perl-version;-libc.patch</userinput></screen></para>
+
+<para>And make sure some static extensions get built:</para>
+
+<para><screen><userinput>chmod u+w hints/linux.sh
+echo 'static_ext="IO re Fcntl"' >> hints/linux.sh</userinput></screen></para>
+
+<para>Now prepare Perl for compilation:</para>
+
+<para><screen><userinput>./configure.gnu --prefix=/stage1</userinput></screen></para>
+
+<para>Compile only the required tools:</para>
+
+<para><screen><userinput>make perl utilities</userinput></screen></para>
+
+<para>Then copy these tools and their libraries:</para>
+
+<para><screen><userinput>cp perl pod/pod2man /stage1/bin
mkdir -p /stage1/lib/perl5/5.8.0
cp -R lib/* /stage1/lib/perl5/5.8.0</userinput></screen></para>