Changeset fa8664c


Ignore:
Timestamp:
08/18/2005 08:40:46 PM (19 years ago)
Author:
Matthew Burgess <matthew@…>
Children:
8f82a9e
Parents:
940e0ab
Message:

Simplify finding where GCC's specs and private include dir live

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/gcc4/BOOK@6712 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r940e0ab rfa8664c  
    120120</listitem>
    121121
     122<listitem><para>August 18th, 2005 [matt]: Simplify the method for finding where
     123GCC's default specs file and private include directory live.  Additionally,
     124don't assume the host's sed supports the -i switch.</para></listitem>
     125
    122126<listitem><para>August 18th, 2005 [ken]: Add a patch to sanitise bzgrep's
    123127handling of filenames.</para></listitem>
  • chapter05/adjusting.xml

    r940e0ab rfa8664c  
    3939<!-- Ampersands are needed to allow copy and paste -->
    4040
    41 <screen><userinput>SPECFILE=`gcc -print-search-dirs | head -n 1 | awk '{ print $2 "specs" }'` &amp;&amp;
     41<screen><userinput>SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs &amp;&amp;
    4242gcc -dumpspecs > $SPECFILE &amp;&amp;
    43 sed -i -e 's@^/lib/ld-linux.so.2@/tools&amp;@g' $SPECFILE &amp;&amp;
     43sed 's@^/lib/ld-linux.so.2@/tools&amp;@g' $SPECFILE &gt; tempspecfile &amp;&amp;
     44mv -f tempspecfile $SPECFILE &amp;&amp;
    4445unset SPECFILE</userinput></screen>
    4546
     
    6768
    6869<!-- && used to ease copy and pasting -->
    69 <screen><userinput>GCC_INCLUDEDIR=`gcc -print-search-dirs | head -n 1 | awk '{ print $2 "include" }'` &amp;&amp;
     70<screen><userinput>GCC_INCLUDEDIR=`dirname $(gcc -print-libgcc-file-name)`/include &amp;&amp;
    7071find ${GCC_INCLUDEDIR}/* -xtype d -exec rm -rf \{} \; &amp;&amp;
    7172rm -f `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` &amp;&amp;
  • chapter06/readjusting.xml

    r940e0ab rfa8664c  
    5454dynamic linker. A <command>sed</command> command accomplishes this:</para>
    5555
    56 <screen><userinput>SPECFILE=`gcc -print-search-dirs | head -n 1 | awk '{ print $2 "specs" }'` &amp;&amp;
     56<screen><userinput>SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs &amp;&amp;
    5757gcc -dumpspecs > $SPECFILE &amp;&amp;
    58 sed -i -e 's@^/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' $SPECFILE &amp;&amp;
     58sed -i 's@^/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' $SPECFILE &amp;&amp;
    5959unset SPECFILE</userinput></screen>
    6060
Note: See TracChangeset for help on using the changeset viewer.