On 7/22/06, Bruce Dubbs <[EMAIL PROTECTED]> wrote:
Robert Connolly wrote:
> Hi. Sorry if this has been discused before. Rather than:
>
> SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs &&
> gcc -dumpspecs > $SPECFILE &&
> sed '[EMAIL PROTECTED]/lib/ld-linux.so.2@/tools&@g' $SPECFILE > tempspecfile
&&
> mv -vf tempspecfile $SPECFILE &&
> unset SPECFILE
>
> I find it cleaner and easier to read:
>
> gcc -dumpspecs | sed '[EMAIL PROTECTED]/lib/ld-linux.so.2@/tools&@g' \
> > `dirname $(gcc -print-libgcc-file-name)`/specs
>
> The result is exactly the same.
I think you are right. I don't want to put this into 6.2 as the present
instructions do work. It is a good suggestion for trunk.
That's the way the Ch.6 readjustment looks (except for perl doing the
editing). IIRC, the reason for the discrepancy was that it was decided
to keep the Ch. 5 adjustment that way was just to show different means
of producing the change. In other words, it was for educational
purposes. I prefer the proposed syntax, though.
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page