- Timestamp:
- 12/17/2004 08:01:07 PM (20 years ago)
- Children:
- 83865af
- Parents:
- c30ef42
- Location:
- chapter05
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/adjusting.xml
rc30ef42 r2b6c440 37 37 <!-- Ampersands are needed to allow copy and paste --> 38 38 39 <screen ><userinput>SPECFILE=`gcc --print-file specs` &&39 <screen arch="x86"><userinput>SPECFILE=`gcc --print-file specs` && 40 40 sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \ 41 $SPECFILE > tempspecfile && 42 mv -f tempspecfile $SPECFILE && 43 unset SPECFILE</userinput></screen> 44 45 <screen arch="raq2"><userinput>SPECFILE=`gcc --print-file specs` && 46 sed 's@ /lib/ld.so.1@ /tools/lib/ld.so.1@g' \ 41 47 $SPECFILE > tempspecfile && 42 48 mv -f tempspecfile $SPECFILE && … … 47 53 <beginpage/> 48 54 Alternatively, the specs file can be edited by hand. This is done by 49 replacing every occurrence of <quote>/lib/ld-linux.so.2</quote> with 50 <quote>/tools/lib/ld-linux.so.2</quote></para> 55 replacing every occurrence of <quote arch="x86">/lib/ld-linux.so.2</quote> 56 <quote arch="raq2">/lib/ld.so.1</quote> with <quote arch="x86">/tools/lib/ld-linux.so.2</quote> 57 <quote arch="raq2">/tools/lib/ld.so.2</quote></para> 51 58 52 59 <para>Be sure to visually inspect the specs file in order to verify the 53 60 intended changes have been made.</para> 61 62 <!-- For specific arch books, the next para isn't needed, IMHO. 54 63 55 64 <important><para>If working on a platform where the name of the … … 60 69 linkend="ch-tools-toolchaintechnotes" role=","/> if 61 70 necessary.</para></important> 71 --> 62 72 63 73 <para>There is a possibility that some include files from the host … … 84 94 and the output of the last command will be of the form:</para> 85 95 86 <screen ><computeroutput>[Requesting program interpreter:96 <screen arch="x86"><computeroutput>[Requesting program interpreter: 87 97 /tools/lib/ld-linux.so.2]</computeroutput></screen> 98 99 <screen arch="raq2"><computeroutput>[Requesting program interpreter: 100 /tools/lib/ld.so.1]</computeroutput></screen> 88 101 89 102 <para>Note that <filename class="directory">/tools/lib</filename> -
chapter05/glibc.xml
rc30ef42 r2b6c440 38 38 the method suggested in this book puts the stability of the system at 39 39 risk.</para> 40 41 <para arch="raq2">NPTL is not supported under the MIPS architecture, so we are going to 42 remove the nptl directory from the Glibc source:</para> 43 44 <screen arch="raq2"><userinput>rm -rf nptl</userinput></screen> 45 46 <para arch="raq2">This patch fixes a librt linking issue.</para> 47 48 <screen arch="raq2"><userinput>patch -Np1 -i ../glibc-&glibc-version;-raq2_librt_linking-1.patch</userinput></screen> 49 50 <para arch="raq2">This patch contains all the necessary patches for RaQ2 server.</para> 51 52 <screen arch="raq2"><userinput>patch -Np1 -i ../glibc-&glibc-version;-raq2_fixes-1.patch</userinput></screen> 40 53 41 54 <para>The Glibc documentation recommends building Glibc outside of the source -
chapter05/grep.xml
rc30ef42 r2b6c440 27 27 <sect2 role="installation"> 28 28 <title>Installation of Grep</title> 29 30 <para arch="raq2">This patch updates config.guess and config.sub for RaQ2 servers.</para> 31 32 <screen arch="raq2"><userinput>patch -Np1 -i ../grep-&grep-version;-raq2_config_update-1.patch</userinput></screen> 29 33 30 34 <para>Prepare Grep for compilation:</para> -
chapter05/linux-libc-headers.xml
rc30ef42 r2b6c440 41 41 Interface (API) stable version of the Linux headers.</para> 42 42 43 <para arch="raq2">This patch fixes a compile issue with Glibc on a RaQ2 server.</para> 44 45 <screen arch="raq2"><userinput>patch -Np1 -i ../linux-libc-headers-&linux-libc-headers-version;-raq2_fix-1.patch</userinput></screen> 46 43 47 <para>Install the header files:</para> 44 48
Note:
See TracChangeset
for help on using the changeset viewer.