On 1/29/06, Dan Nicholson <[EMAIL PROTECTED]> wrote:
> On 1/29/06, Jeremy Huntwork <[EMAIL PROTECTED]> wrote:
> >
> > So. Exepect a commit in ~ 5 minutes.
>
> Probably, we should drop -i and redirect the output:

Now that I think about this more, the pipe and redirect *without* -i
is much better.  This way, you're always editing starting from the
default -dumpspecs instead of editing the existing file.  Then you can
run the command as many times as you want.  You don't have to worry
about what's in the $SPECFILE file since you're always going to
overwrite it.  This can also be applied to CLFS where there's a big
warning about not re-running the specs adjustment command in Ch. 10.6
(in the x86 book).

This is my suggestion:

SPECFILE=`dirname $(gcc --print-libgcc-file-name)`/specs
gcc -dumpspecs | \
perl -p -e 's@/tools/lib/ld-linux.so.2@/lib/[EMAIL PROTECTED];' \
      -e '[EMAIL PROTECTED]:[EMAIL PROTECTED]/usr/lib/ @g;' &gt; \
      > $SPECFILE
unset SPECFILE

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to