Changeset fa8664c
- Timestamp:
- 08/18/2005 08:40:46 PM (19 years ago)
- Children:
- 8f82a9e
- Parents:
- 940e0ab
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r940e0ab rfa8664c 120 120 </listitem> 121 121 122 <listitem><para>August 18th, 2005 [matt]: Simplify the method for finding where 123 GCC's default specs file and private include directory live. Additionally, 124 don't assume the host's sed supports the -i switch.</para></listitem> 125 122 126 <listitem><para>August 18th, 2005 [ken]: Add a patch to sanitise bzgrep's 123 127 handling of filenames.</para></listitem> -
chapter05/adjusting.xml
r940e0ab rfa8664c 39 39 <!-- Ampersands are needed to allow copy and paste --> 40 40 41 <screen><userinput>SPECFILE=` gcc -print-search-dirs | head -n 1 | awk '{ print $2 "specs" }'`&&41 <screen><userinput>SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs && 42 42 gcc -dumpspecs > $SPECFILE && 43 sed -i -e 's@^/lib/ld-linux.so.2@/tools&@g' $SPECFILE && 43 sed 's@^/lib/ld-linux.so.2@/tools&@g' $SPECFILE > tempspecfile && 44 mv -f tempspecfile $SPECFILE && 44 45 unset SPECFILE</userinput></screen> 45 46 … … 67 68 68 69 <!-- && used to ease copy and pasting --> 69 <screen><userinput>GCC_INCLUDEDIR=` gcc -print-search-dirs | head -n 1 | awk '{ print $2 "include" }'`&&70 <screen><userinput>GCC_INCLUDEDIR=`dirname $(gcc -print-libgcc-file-name)`/include && 70 71 find ${GCC_INCLUDEDIR}/* -xtype d -exec rm -rf \{} \; && 71 72 rm -f `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` && -
chapter06/readjusting.xml
r940e0ab rfa8664c 54 54 dynamic linker. A <command>sed</command> command accomplishes this:</para> 55 55 56 <screen><userinput>SPECFILE=` gcc -print-search-dirs | head -n 1 | awk '{ print $2 "specs" }'`&&56 <screen><userinput>SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs && 57 57 gcc -dumpspecs > $SPECFILE && 58 sed -i -e's@^/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' $SPECFILE &&58 sed -i 's@^/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' $SPECFILE && 59 59 unset SPECFILE</userinput></screen> 60 60
Note:
See TracChangeset
for help on using the changeset viewer.