uClibc 2.6 book suggestion & typo

Kevin Day thekevinday at gmail.com
Mon May 21 10:48:05 PDT 2007


On 5/19/07, Robert Connolly <robert at linuxfromscratch.org> wrote:
> On Saturday May 19 2007 19:01, Kevin Day wrote:
> > This is about Chapter 5, for the adjusting the toolchain
> > uclibc-2.6/chapter05/adjusting.html
> >
> > I think you should also handle the case where the host is a uClibc
> > system as well,
> > change:
> >   gcc -dumpspecs | sed 's@/lib/ld-linux.so.2@/tools/lib/ld-uClibc.so.0 at g' \
> >
> >     > `dirname $(gcc -print-libgcc-file-name)`/specs
> >
> > to:
> > gcc -dumpspecs | sed -e 's@/lib/ld-linux.so.2@/tools/lib/ld-uClibc.so.0 at g'
> > \ -e 's@/lib/ld-uClibc.so.0@/tools/lib/ld-uClibc.so.0 at g'\
> >
> >     > `dirname $(gcc -print-libgcc-file-name)`/specs
> >
> > Or at least mention both cases separately.
>
> Is there any problem with 's@/lib/@/tools/lib/@' ?
>
> Both commands can be repeated multiple times (by mistake) and be okay because
> it always uses a fresh -dumpspecs.
>
> robert
>

That looks safe, I did not see any other appearance of /lib/ so that
expression should be safe.

-- 
Kevin Day



More information about the hlfs-dev mailing list