- Timestamp:
- 07/16/2005 07:24:28 PM (19 years ago)
- Children:
- ccc95be
- Parents:
- f213c7b3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/readjusting.xml
rf213c7b3 rf4b803f 54 54 dynamic linker. A <command>perl</command> command accomplishes this:</para> 55 55 56 <screen><userinput>perl -pi -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g;' \ 57 -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' \ 58 `gcc --print-file specs`</userinput></screen> 56 <screen><userinput>SPECFILE=`gcc -print-search-dirs | head -n 1 | awk '{ print $2 "specs" }'` && 57 gcc -dumpspecs > $SPECFILE && 58 sed -i -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' $SPECFILE && 59 unset SPECFILE</userinput></screen> 59 60 60 61 <para>It is a good idea to visually inspect the specs file to verify the intended
Note:
See TracChangeset
for help on using the changeset viewer.