aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/binutils-pass1.xml3
-rw-r--r--chapter05/perl.xml8
2 files changed, 8 insertions, 3 deletions
diff --git a/chapter05/binutils-pass1.xml b/chapter05/binutils-pass1.xml
index b6de18b96..73e7948ac 100644
--- a/chapter05/binutils-pass1.xml
+++ b/chapter05/binutils-pass1.xml
@@ -76,8 +76,7 @@ cd ../binutils-build</userinput></screen>
<para>Now prepare Binutils for compilation:</para>
-<screen><userinput remap="configure">
-../binutils-&binutils-version;/configure \
+<screen><userinput remap="configure">../binutils-&binutils-version;/configure \
--prefix=/tools \
--with-sysroot=$LFS \
--with-lib-path=/tools/lib \
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>