diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-06-03 17:41:05 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-06-03 17:41:05 +0000 |
commit | 450e682e4cc1b8091ef8ee71b48f4093dbb005ae (patch) | |
tree | d9bb82ef83945c4585137d5d0a484789735cd878 /chapter05 | |
parent | 7cf6e188717cb8f6ce77fbbcb3ae70f197ce7e0a (diff) |
Add pkg-config-0.26-internal-glib
Add popt-1.16
Fix problem building perl in some environments
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9871 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-rw-r--r-- | chapter05/binutils-pass1.xml | 3 | ||||
-rw-r--r-- | chapter05/perl.xml | 8 |
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> |