[lfs-support] in "Binutils-2.22 - Pass 2" should patch the source before "cd ../binutils-build"

Alexander Kapshuk alexander.kapshuk at gmail.com
Thu Mar 29 08:58:53 PDT 2012


On Thu, Mar 29, 2012 at 6:10 PM, xinglp <xinglp at gmail.com> wrote:

> 在 2012年3月29日 下午11:03,Alexander Kapshuk <alexander.kapshuk at gmail.com> 写道:
> > What patch would that be?
> > The book doesn't mention any.
>
>
> http://www.linuxfromscratch.org/lfs/view/development/chapter05/binutils-pass2.html
> =====================================
> 5.9.1. Installation of Binutils
>
> Create a separate build directory again:
> mkdir -v ../binutils-build
> cd ../binutils-build
>
> Apply a patch to prevent a build failure when using compiler optimizations:
> patch -Np1 -i ../binutils-2.22-build_fix-1.patch
> =====================================
> SHOULD BE
> =====================================
> Apply a patch to prevent a build failure when using compiler optimizations:
> patch -Np1 -i ../binutils-2.22-build_fix-1.patch
>
> Create a separate build directory again:
> mkdir -v ../binutils-build
> cd ../binutils-build
> =====================================
> >
> >
> > On Thu, Mar 29, 2012 at 5:35 PM, xinglp <xinglp at gmail.com> wrote:
> >>
> >>
> >> --
> >> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> >> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> >> Unsubscribe: See the above information page
> >
> >
> >
> > --
> > http://linuxfromscratch.org/mailman/listinfo/lfs-support
> > FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> > Unsubscribe: See the above information page
> >
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
On the hind thought, correct me if I'm wrong but the original instructions
seem to be OK.
(1). The patch file would be in $LFS/sources
(2). The archive containing binutils would be in $LFS/sources as well
(3). Once unpacked, one would cd into the directory containing the unpacked
files
(4). Then, do 'mkdir ../binutils-build', with binutils-build residing in
$LFS/sources
(5). cd into ../binutils-build ($LFS/sources/binutils-build)
(6). Apply the path: path -Np1 -i ../binutils...patch
($LFS/sources/binutils...patch)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20120329/de871e33/attachment.html>


More information about the lfs-support mailing list