Changeset 03e6a40 for BOOK/cross-tools/common
- Timestamp:
- Apr 20, 2014, 8:57:39 AM (11 years ago)
- Children:
- 0be79ea
- Parents:
- 88ef769 (diff), 578ca586 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- BOOK/cross-tools/common
- Files:
-
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/common/bc.xml
r88ef769 r03e6a40 28 28 29 29 <variablelist> 30 <title>The meaning of the configure option s:</title>30 <title>The meaning of the configure option:</title> 31 31 32 32 <varlistentry> -
BOOK/cross-tools/common/binutils-32.xml
r88ef769 r03e6a40 83 83 84 84 <varlistentry os="bd4"> 85 <term><parameter>--with-sysroot=${CLFS}</parameter></term> 86 <listitem> 87 <para>Tells configure to build a linker that uses ${CLFS} as its 88 root directory for its search paths.</para> 89 </listitem> 90 </varlistentry> 91 92 <varlistentry os="bd5"> 85 93 <term><parameter>--with-lib-path=/tools/lib</parameter></term> 86 94 <listitem> … … 93 101 </varlistentry> 94 102 95 <varlistentry os="bd 5">103 <varlistentry os="bd6"> 96 104 <term><parameter>--disable-nls</parameter></term> 97 105 <listitem> … … 101 109 </varlistentry> 102 110 103 <varlistentry os="bd 6">111 <varlistentry os="bd7"> 104 112 <term><parameter>--disable-multilib</parameter></term> 105 113 <listitem> … … 113 121 <para os="be">Compile the package:</para> 114 122 115 <screen os="bf"><userinput>make configure-host 116 make</userinput></screen> 117 118 <variablelist os="bg"> 119 <title>The meaning of the make options:</title> 120 121 <varlistentry os="bg1"> 122 <term><parameter>configure-host</parameter></term> 123 <listitem> 124 <para>This checks the host environment and makes sure all the 125 necessary tools are available to compile Binutils.</para> 126 </listitem> 127 </varlistentry> 128 129 </variablelist> 123 <screen os="bf"><userinput>make</userinput></screen> 130 124 131 125 <para os="bh">Install the package:</para> 132 126 133 127 <screen os="bi"><userinput>make install</userinput></screen> 134 135 <para os="bj">Copy <filename class="headerfile">libiberty.h</filename> to136 <filename class="directory">/tools/include</filename> directory:</para>137 138 <screen os="bk"><userinput>cp -v ../binutils-&binutils-dir;/include/libiberty.h /tools/include</userinput></screen>139 128 140 129 </sect2> -
BOOK/cross-tools/common/binutils.xml
r88ef769 r03e6a40 83 83 84 84 <varlistentry os="bd4"> 85 <term><parameter>--with-sysroot=${CLFS}</parameter></term> 86 <listitem> 87 <para>Tells configure to build a linker that uses ${CLFS} as its 88 root directory for its search paths.</para> 89 </listitem> 90 </varlistentry> 91 92 <varlistentry os="bd5"> 85 93 <term><parameter>--with-lib-path=/tools/lib</parameter></term> 86 94 <listitem> … … 93 101 </varlistentry> 94 102 95 <varlistentry os="bd 5">103 <varlistentry os="bd6"> 96 104 <term><parameter>--disable-nls</parameter></term> 97 105 <listitem> … … 101 109 </varlistentry> 102 110 103 <varlistentry os="bd 6">111 <varlistentry os="bd7"> 104 112 <term><parameter>--disable-multilib</parameter></term> 105 113 <listitem> … … 109 117 </varlistentry> 110 118 111 <varlistentry os="bd 7">119 <varlistentry os="bd8"> 112 120 <term><parameter>--enable-64-bit-bfd</parameter></term> 113 121 <listitem> … … 120 128 <para os="be">Compile the package:</para> 121 129 122 <screen os="bf"><userinput>make configure-host 123 make</userinput></screen> 124 125 <variablelist os="bg"> 126 <title>The meaning of the make options:</title> 127 128 <varlistentry os="bg1"> 129 <term><parameter>configure-host</parameter></term> 130 <listitem> 131 <para>This checks the host environment and makes sure all the 132 necessary tools are available to compile Binutils.</para> 133 </listitem> 134 </varlistentry> 135 136 </variablelist> 130 <screen os="bf"><userinput>make</userinput></screen> 137 131 138 132 <para os="bh">Install the package:</para> 139 133 140 134 <screen os="bi"><userinput>make install</userinput></screen> 141 142 <para os="bj">Copy <filename class="headerfile">libiberty.h</filename> to143 <filename class="directory">/tools/include</filename> directory:</para>144 145 <screen os="bk"><userinput>cp -v ../binutils-&binutils-dir;/include/libiberty.h /tools/include</userinput></screen>146 135 147 136 </sect2> -
BOOK/cross-tools/common/cloog.xml
r88ef769 r03e6a40 29 29 --with-gmp-prefix=/cross-tools --with-isl-prefix=/cross-tools</userinput></screen> 30 30 31 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 32 href="../../final-system/common/cloog.xml" 33 xpointer="xpointer(//*[@os='s1'])"/> 34 35 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 36 href="../../final-system/common/cloog.xml" 37 xpointer="xpointer(//*[@os='s2'])"/> 38 31 39 <para os="c">Compile the package:</para> 32 40 -
BOOK/cross-tools/common/file.xml
r88ef769 r03e6a40 28 28 29 29 <variablelist> 30 <title>The meaning of the configure options:</title> 31 32 <varlistentry> 33 <term><parameter>--prefix=/cross-tools</parameter></term> 34 <listitem> 35 <para>This tells the configure script to prepare to install the 36 package in the <filename class="directory">/cross-tools</filename> 37 directory.</para> 38 </listitem> 39 </varlistentry> 30 <title>The meaning of the new configure option:</title> 40 31 41 32 <varlistentry> -
BOOK/cross-tools/common/gcc-final.xml
r88ef769 r03e6a40 68 68 --disable-multilib --with-mpc=/cross-tools --with-mpfr=/cross-tools \ 69 69 --with-gmp=/cross-tools --with-cloog=/cross-tools \ 70 --enable-cloog-backend=isl --with-isl=/cross-tools \ 71 --disable-isl-version-check --with-system-zlib --enable-checking=release \ 70 --with-isl=/cross-tools --with-system-zlib --enable-checking=release \ 72 71 --enable-libstdcxx-time</userinput></screen> 73 72 … … 114 113 </varlistentry> 115 114 115 <varlistentry os="bg6"> 116 <term><parameter>--enable-libstdcxx-time</parameter></term> 117 <listitem> 118 <para>This enables link-time checks for the availability of 119 clock_gettime clocks, and nanosleep and sched_yield functions, in the 120 C library.</para> 121 </listitem> 122 </varlistentry> 123 116 124 </variablelist> 117 125 -
BOOK/cross-tools/common/gcc-static.xml
r88ef769 r03e6a40 69 69 --with-isl=/cross-tools --with-cloog=/cross-tools --with-mpc=/cross-tools \ 70 70 --without-headers --with-newlib --disable-decimal-float --disable-libgomp \ 71 --disable-libmudflap --disable-libssp --disable-threads --disable-multilib \ 72 --disable-libatomic --disable-libitm --disable-libsanitizer \ 73 --disable-libquadmath --disable-target-libiberty --disable-target-zlib \ 74 --with-system-zlib --enable-cloog-backend=isl --disable-isl-version-check \ 71 --disable-libmudflap --disable-libssp --disable-libatomic --disable-libitm \ 72 --disable-libsanitizer --disable-libquadmath --disable-threads \ 73 --disable-multilib --disable-target-zlib --with-system-zlib \ 75 74 --enable-languages=c --enable-checking=release</userinput></screen> 76 75 77 76 <variablelist os="am"> 78 77 <title>The meaning of the new configure options:</title> 79 80 <varlistentry>81 <term><parameter>--with-sysroot=${CLFS}</parameter></term>82 <listitem>83 <para>Tells GCC to consider ${CLFS} as the root file system.</para>84 </listitem>85 </varlistentry>86 78 87 79 <varlistentry> … … 96 88 </varlistentry> 97 89 98 99 90 <varlistentry> 100 91 <term><parameter>--with-native-system-headers-dir=/tools/include</parameter></term> … … 107 98 108 99 <varlistentry> 109 <term><parameter>--disable-nls</parameter></term> 110 <listitem> 111 <para>This disables internationalization as i18n is not needed for the 112 cross-compile tools.</para> 100 <term><parameter>--disable-shared</parameter></term> 101 <listitem> 102 <para>This tells GCC not to create a shared library.</para> 113 103 </listitem> 114 104 </varlistentry> … … 136 126 137 127 <varlistentry> 138 <term><parameter>--disable-libgomp</parameter></term> 139 <listitem> 140 <para>Disables the creation of runtime libraries used by GOMP.</para> 141 </listitem> 142 </varlistentry> 143 144 <varlistentry> 145 <term><parameter>--disable-libmudflap</parameter></term> 146 <listitem> 147 <para>Disables the creation of runtime libaries used by libmudflap.</para> 148 </listitem> 149 </varlistentry> 150 151 <varlistentry> 152 <term><parameter>--disable-libssp</parameter></term> 153 <listitem> 154 <para>Disables the use of Stack Smashing Protection for runtime libraries.</para> 128 <term><parameter>--disable-lib*</parameter></term> 129 <listitem> 130 <para>These options prevent GCC from building a number of libraries 131 that are not needed at this time.</para> 155 132 </listitem> 156 133 </varlistentry> … … 167 144 168 145 <varlistentry> 169 <term><parameter>--disable-libatomic</parameter></term> 170 <listitem> 171 <para>The atomic library isn't needed at this time.</para> 172 </listitem> 173 </varlistentry> 174 175 <varlistentry> 176 <term><parameter>--disable-libitm</parameter></term> 177 <listitem> 178 <para>The itm library isn't neeeded at this tiem.</para> 179 </listitem> 180 </varlistentry> 181 182 <varlistentry> 183 <term><parameter>--disable-libsanitizer</parameter></term> 184 <listitem> 185 <para>The sanitizer library isn't needed at this time.</para> 186 </listitem> 187 </varlistentry> 188 189 <varlistentry> 190 <term><parameter>--disable-libquadmath</parameter></term> 191 <listitem> 192 <para>The quadmath library isn't needed at this time.</para> 146 <term><parameter>--disable-target-zlib</parameter></term> 147 <listitem> 148 <para>This tells GCC stuff.</para> 149 </listitem> 150 </varlistentry> 151 152 <varlistentry> 153 <term><parameter>--with-system-zlib</parameter></term> 154 <listitem> 155 <para>This tells GCC to link to the system-installed zlib instead 156 of the one in its source tree.</para> 193 157 </listitem> 194 158 </varlistentry> … … 231 195 <screen os="ar"><userinput>make install-gcc install-target-libgcc</userinput></screen> 232 196 197 <para os="as">Copy <filename class="headerfile">libiberty.h</filename> to 198 <filename class="directory">/tools/include</filename> directory:</para> 199 200 <screen os="at"><userinput>cp -v ../gcc-&gcc-version;/include/libiberty.h /tools/include</userinput></screen> 201 233 202 </sect2> 234 203 -
BOOK/cross-tools/common/glibc.xml
r88ef769 r03e6a40 6 6 ]> 7 7 8 <sect1 id="ch-cross-tools- eglibc" role="wrap">9 <?dbhtml filename=" eglibc.html"?>8 <sect1 id="ch-cross-tools-glibc" role="wrap"> 9 <?dbhtml filename="glibc.html"?> 10 10 11 <title> EGLIBC-&eglibc-version;</title>11 <title>GLIBC-&glibc-version;</title> 12 12 13 <indexterm zone="ch-cross-tools- eglibc">14 <primary sortas="a- EGLIBC">EGLIBC</primary>13 <indexterm zone="ch-cross-tools-glibc"> 14 <primary sortas="a-GLIBC">GLIBC</primary> 15 15 <secondary>cross tools</secondary> 16 16 </indexterm> 17 17 18 18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 19 href="../../final-system/common/ eglibc.xml"19 href="../../final-system/common/glibc.xml" 20 20 xpointer="xpointer(//*[@role='package'])"/> 21 21 22 22 <sect2 role="installation"> 23 <title>Installation of EGLIBC</title>23 <title>Installation of GLIBC</title> 24 24 25 <para os="da">It should be noted that compiling EGLIBC in any way other than25 <para os="da">It should be noted that compiling GLIBC in any way other than 26 26 the method suggested in this book puts the stability of the system at 27 27 risk.</para> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 30 href="../../final-system/common/ eglibc.xml"30 href="../../final-system/common/glibc.xml" 31 31 xpointer="xpointer(//*[@os='s1'])"/> 32 32 33 33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 34 href="../../final-system/common/ eglibc.xml"34 href="../../final-system/common/glibc.xml" 35 35 xpointer="xpointer(//*[@os='s2'])"/> 36 36 37 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 38 href="../../final-system/common/ eglibc.xml"38 href="../../final-system/common/glibc.xml" 39 39 xpointer="xpointer(//*[@os='e'])"/> 40 40 41 41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 42 href="../../final-system/common/ eglibc.xml"42 href="../../final-system/common/glibc.xml" 43 43 xpointer="xpointer(//*[@os='f'])"/> 44 44 45 45 <para os="dd">Add the following to <filename>config.cache</filename> 46 to disable ssp when building EGLIBC:</para>46 to disable ssp when building GLIBC:</para> 47 47 48 48 <screen os="de"><userinput>echo "libc_cv_ssp=no" > config.cache</userinput></screen> 49 49 50 50 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 51 href="../../final-system/common/ eglibc.xml"51 href="../../final-system/common/glibc.xml" 52 52 xpointer="xpointer(//*[@os='g'])"/> 53 53 54 54 <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \ 55 55 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \ 56 ../ eglibc-&eglibc-version;/configure --prefix=/tools \56 ../glibc-&glibc-version;/configure --prefix=/tools \ 57 57 --host=${CLFS_TARGET} --build=${CLFS_HOST} \ 58 58 --disable-profile --with-tls --enable-kernel=2.6.32 \ … … 67 67 <term><parameter>BUILD_CC="gcc"</parameter></term> 68 68 <listitem> 69 <para>This sets EGLIBC to use the current compiler on our system. This is70 used to create the tools EGLIBC uses during its build.</para>69 <para>This sets GLIBC to use the current compiler on our system. This is 70 used to create the tools GLIBC uses during its build.</para> 71 71 </listitem> 72 72 </varlistentry> … … 75 75 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term> 76 76 <listitem> 77 <para>This forces EGLIBC to use the GCC compiler that we made for our target77 <para>This forces GLIBC to use the GCC compiler that we made for our target 78 78 architecture.</para> 79 79 </listitem> … … 83 83 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term> 84 84 <listitem> 85 <para>This forces EGLIBC to use the <command>ar</command> utility85 <para>This forces GLIBC to use the <command>ar</command> utility 86 86 we made for our target architecture.</para> 87 87 </listitem> … … 91 91 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term> 92 92 <listitem> 93 <para>This forces EGLIBC to use the <command>ranlib</command> utility93 <para>This forces GLIBC to use the <command>ranlib</command> utility 94 94 we made for our target architecture.</para> 95 95 </listitem> … … 107 107 <term><parameter>--with-tls</parameter></term> 108 108 <listitem> 109 <para>This tells EGLIBC to use Thread Local Storage.</para>109 <para>This tells GLIBC to use Thread Local Storage.</para> 110 110 </listitem> 111 111 </varlistentry> … … 114 114 <term><parameter>--enable-kernel=2.6.32</parameter></term> 115 115 <listitem> 116 <para>This tells EGLIBC to compile the library with support116 <para>This tells GLIBC to compile the library with support 117 117 for 2.6.32 and later Linux kernels.</para> 118 118 </listitem> … … 122 122 <term><parameter>--with-__thread</parameter></term> 123 123 <listitem> 124 <para>This tells EGLIBC to use use the __thread for libc and124 <para>This tells GLIBC to use use the __thread for libc and 125 125 libpthread builds.</para> 126 126 </listitem> … … 130 130 <term><parameter>--with-binutils=/cross-tools/bin</parameter></term> 131 131 <listitem> 132 <para>This tells EGLIBC to use the Binutils that are specific to132 <para>This tells GLIBC to use the Binutils that are specific to 133 133 our target architecture.</para> 134 134 </listitem> … … 138 138 <term><parameter>--with-headers=/tools/include</parameter></term> 139 139 <listitem> 140 <para>This tells EGLIBC to compile itself against the headers140 <para>This tells GLIBC to compile itself against the headers 141 141 recently installed to the <filename class="directory">/tools</filename> 142 142 directory, so that it knows exactly what features the kernel has … … 146 146 147 147 <varlistentry os="dg11"> 148 <term><parameter>--enable-obsolete-rpc</parameter></term> 149 <listitem> 150 <para>This tells GLIBC to install rpc headers that are not installed 151 by default but may be needed by other packages.</para> 152 </listitem> 153 </varlistentry> 154 155 <varlistentry os="dg12"> 148 156 <term><parameter>--cache-file=config.cache</parameter></term> 149 157 <listitem> 150 <para>This tells EGLIBC to utilize a premade cache file.</para>158 <para>This tells GLIBC to utilize a premade cache file.</para> 151 159 </listitem> 152 160 </varlistentry> … … 180 188 181 189 <para>Details on this package are located in <xref 182 linkend="contents- eglibc" role="."/></para>190 linkend="contents-glibc" role="."/></para> 183 191 184 192 </sect2> -
BOOK/cross-tools/common/gmp.xml
r88ef769 r03e6a40 46 46 47 47 <variablelist os="b1"> 48 <title>The meaning of the new configure option s:</title>48 <title>The meaning of the new configure option:</title> 49 49 50 50 <varlistentry> -
BOOK/cross-tools/common/mpfr.xml
r88ef769 r03e6a40 49 49 50 50 <varlistentry> 51 <term><parameter>--enable-shared</parameter></term>52 <listitem>53 <para>This tells <command>configure</command> to build MPFR's54 shared libraries.</para>55 </listitem>56 </varlistentry>57 58 <varlistentry>59 51 <term><parameter>--with-gmp=/cross-tools</parameter></term> 60 52 <listitem>
Note:
See TracChangeset
for help on using the changeset viewer.