Changeset 76b06f6 for BOOK/cross-tools/common
- Timestamp:
- Sep 24, 2013, 11:53:17 AM (11 years ago)
- Children:
- 2e9ccbe
- Parents:
- 111b12a
- Location:
- BOOK/cross-tools/common
- Files:
-
- 1 added
- 2 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/common/binutils-32.xml
r111b12a r76b06f6 37 37 xpointer="xpointer(//*[@os='p2'])"/> 38 38 --> 39 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"40 href="../common/binutils.xml"41 xpointer="xpointer(//*[@os='s1'])"/>42 43 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"44 href="../common/binutils.xml"45 xpointer="xpointer(//*[@os='s2'])"/>46 39 47 40 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" -
BOOK/cross-tools/common/binutils.xml
r111b12a r76b06f6 37 37 xpointer="xpointer(//*[@os='p2'])"/> 38 38 --> 39 <para os="s1">Apply the following sed for hosts using Texinfo-5.x:</para>40 41 <screen os="s2"><userinput>sed -i -e 's/@colophon/@@colophon/' \42 -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo</userinput></screen>43 39 44 40 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" -
BOOK/cross-tools/common/cloog.xml
r111b12a r76b06f6 23 23 <title>Installation of CLooG</title> 24 24 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 26 href="../../temp-system/common/cloog.xml" 27 xpointer="xpointer(//*[@os='s1'])"/> 28 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 30 href="../../temp-system/common/cloog.xml" 31 xpointer="xpointer(//*[@os='s2'])"/> 32 25 33 <para os="a">Prepare CLooG for compilation:</para> 26 34 27 35 <screen os="b"><userinput>LDFLAGS="-Wl,-rpath,/cross-tools/lib" \ 28 36 ./configure --prefix=/cross-tools --enable-shared --disable-static \ 29 --with-gmp-prefix=/cross-tools --with-isl-prefix=/cross-tools</userinput></screen>37 --with-gmp-prefix=/cross-tools</userinput></screen> 30 38 31 39 <para os="c">Compile the package:</para> -
BOOK/cross-tools/common/eglibc.xml
r111b12a r76b06f6 27 27 risk.</para> 28 28 29 <para os="db">Disable linking to <filename>libgcc_eh</filename>:</para> 30 31 <screen os="dc"><userinput>cp -v Makeconfig{,.orig} 32 sed -e 's/-lgcc_eh//g' Makeconfig.orig > Makeconfig</userinput></screen> 33 29 34 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 30 35 href="../../final-system/common/eglibc.xml" … … 35 40 xpointer="xpointer(//*[@os='f'])"/> 36 41 37 <para os="dd"> Add the following to <filename>config.cache</filename>38 to disable ssp when building EGLIBC:</para>42 <para os="dd">The following lines need to be added to 43 <filename>config.cache</filename> for EGLIBC to support NPTL:</para> 39 44 40 <screen os="de"><userinput>echo "libc_cv_ssp=no" > config.cache</userinput></screen> 45 <screen os="de"><userinput>cat > config.cache << "EOF" 46 libc_cv_forced_unwind=yes 47 libc_cv_c_cleanup=yes 48 libc_cv_gnu89_inline=yes 49 libc_cv_ssp=no 50 EOF</userinput></screen> 41 51 42 52 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" … … 50 60 --disable-profile --with-tls --enable-kernel=2.6.32 \ 51 61 --with-__thread --with-binutils=/cross-tools/bin \ 52 --with-headers=/tools/include --enable-obsolete-rpc \ 53 --cache-file=config.cache</userinput></screen> 62 --with-headers=/tools/include --cache-file=config.cache</userinput></screen> 54 63 55 64 <variablelist os="dg"> … … 164 173 <para os="dm">Install the package:</para> 165 174 166 <screen os="dn"><userinput>make install</userinput></screen> 175 <screen os="dn"><userinput>make install inst_vardbdir=/tools/var/db</userinput></screen> 176 177 <para os="do"><parameter>inst_vardbdir=...</parameter> ensures that db-Makefile is not 178 installed on the host system</para> 179 180 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 181 href="../../final-system/common/eglibc.xml" 182 xpointer="xpointer(//*[@os='ra'])"/> 183 184 <screen os="rb"><userinput>cp -v ../eglibc-&eglibc-version;/sunrpc/rpc/*.h /tools/include/rpc 185 cp -v ../eglibc-&eglibc-version;/sunrpc/rpcsvc/*.h /tools/include/rpcsvc 186 cp -v ../eglibc-&eglibc-version;/nis/rpcsvc/*.h /tools/include/rpcsvc</userinput></screen> 167 187 168 188 </sect2> -
BOOK/cross-tools/common/file.xml
r111b12a r76b06f6 6 6 ]> 7 7 8 <sect1 id="ch-cross-tools-file" role="wrap">8 <sect1 id="ch-cross-tools-file"> 9 9 <?dbhtml filename="file.html"?> 10 10 -
BOOK/cross-tools/common/gcc-final.xml
r111b12a r76b06f6 24 24 25 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 26 href=" ../../final-system/common/gcc.xml"26 href="gcc-static.xml" 27 27 xpointer="xpointer(//*[@os='p1'])"/> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 30 href=" ../../final-system/common/gcc.xml"30 href="gcc-static.xml" 31 31 xpointer="xpointer(//*[@os='p2'])"/> 32 32 … … 49 49 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 50 50 href="gcc-static.xml" 51 xpointer="xpointer(//*[@os='ai'])"/> 52 53 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 54 href="gcc-static.xml" 55 xpointer="xpointer(//*[@os='aj'])"/> 56 57 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 58 href="gcc-static.xml" 51 59 xpointer="xpointer(//*[@os='f'])"/> 52 60 … … 62 70 ../gcc-&gcc-version;/configure --prefix=/cross-tools \ 63 71 --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} \ 64 --with-sysroot=${CLFS} --with-local-prefix=/tools \ 65 --with-native-system-header-dir=/tools/include --disable-nls \ 72 --with-sysroot=${CLFS} --with-local-prefix=/tools --disable-nls \ 66 73 --enable-shared --disable-static --enable-languages=c,c++ \ 67 --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-threads=posix \ 68 --disable-multilib --with-mpc=/cross-tools --with-mpfr=/cross-tools \ 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 \ 72 --enable-libstdcxx-time</userinput></screen> 74 --enable-__cxa_atexit --with-mpfr=/cross-tools --with-gmp=/cross-tools \ 75 --enable-c99 --with-ppl=/cross-tools --with-cloog=/cross-tools \ 76 --enable-cloog-backend=isl --enable-long-long --enable-threads=posix \ 77 --disable-multilib</userinput></screen> 73 78 74 79 <variablelist os="bg"> -
BOOK/cross-tools/common/gcc-static.xml
r111b12a r76b06f6 24 24 and no Threads</title> 25 25 26 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 27 href="../../final-system/common/gcc.xml" 28 xpointer="xpointer(//*[@os='p1'])"/> 26 <para os="p1">The following patch contains a number of updates to the 27 &gcc-version; branch by the GCC developers:</para> 29 28 30 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 31 href="../../final-system/common/gcc.xml" 32 xpointer="xpointer(//*[@os='p2'])"/> 29 <screen os="p2"><userinput>patch -Np1 -i ../&gcc-branch_update-patch;</userinput></screen> 33 30 34 31 <para os="aa">Make a couple of essential adjustments to the … … 38 35 <screen os="ab"><userinput>patch -Np1 -i ../&gcc-specs-patch;</userinput></screen> 39 36 40 <para os="ag">Change the StartFile Spec so that GCC looks in41 <filename class="directory">/tools</filename>:</para>37 <para os="ag">Change the StartFile Spec and Standard Include Dir so that 38 GCC looks in <filename class="directory">/tools</filename>:</para> 42 39 43 <screen os="ah"><userinput>echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >> gcc/config/linux.h 40 <screen os="ah"><userinput>echo -en '#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR "/tools/include/"\n\n' >> gcc/config/linux.h 41 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >> gcc/config/linux.h 44 42 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define STANDARD_STARTFILE_PREFIX_2 ""\n' >> gcc/config/linux.h</userinput></screen> 43 44 <para os="ai">Now alter <command>gcc</command>'s c preprocessor's default 45 include search path to use <filename class="directory">/tools</filename> only:</para> 46 47 <screen os="aj"><userinput>cp -v gcc/Makefile.in{,.orig} 48 sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g" \ 49 gcc/Makefile.in.orig > gcc/Makefile.in</userinput></screen> 45 50 46 51 <para os="t1">We will create a dummy <filename>limits.h</filename> so … … 64 69 ../gcc-&gcc-version;/configure --prefix=/cross-tools \ 65 70 --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \ 66 --with-sysroot=${CLFS} --with-local-prefix=/tools \ 67 --with-native-system-header-dir=/tools/include --disable-nls \ 71 --with-sysroot=${CLFS} --with-local-prefix=/tools --disable-nls \ 68 72 --disable-shared --with-mpfr=/cross-tools --with-gmp=/cross-tools \ 69 --with-isl=/cross-tools --with-cloog=/cross-tools --with-mpc=/cross-tools \ 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 \ 75 --enable-languages=c --enable-checking=release</userinput></screen> 73 --with-ppl=/cross-tools --with-cloog=/cross-tools --without-headers \ 74 --with-newlib --disable-decimal-float --disable-libgomp \ 75 --disable-libmudflap --disable-libssp --disable-threads \ 76 --enable-languages=c --disable-multilib --enable-cloog-backend=isl</userinput></screen> 76 77 77 78 <variablelist os="am"> … … 96 97 </varlistentry> 97 98 98 99 <varlistentry>100 <term><parameter>--with-native-system-headers-dir=/tools/include</parameter></term>101 <listitem>102 <para>This switch ensures that GCC will search for the system headers103 in <filename class="directory">/tools/include</filename> and that104 host system headers will not be searched.</para>105 </listitem>106 </varlistentry>107 108 99 <varlistentry> 109 100 <term><parameter>--disable-nls</parameter></term> 110 101 <listitem> 111 <para>This disables internationalization as i18n is not needed for the 102 <para>This disables internationalization as i18n is not needed for the 112 103 cross-compile tools.</para> 113 104 </listitem> … … 167 158 168 159 <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>193 </listitem>194 </varlistentry>195 196 <varlistentry>197 160 <term><parameter>--enable-languages=c</parameter></term> 198 161 <listitem> 199 162 <para>This option ensures that only the C compiler is built.</para> 200 </listitem>201 </varlistentry>202 203 <varlistentry>204 <term><parameter>--enable-checking=release</parameter></term>205 <listitem>206 <para>This option selects the complexity of the internal consistency checks and adds error checking within the compiler.</para>207 163 </listitem> 208 164 </varlistentry> -
BOOK/cross-tools/common/gmp.xml
r111b12a r76b06f6 35 35 <para os="a">Prepare GMP for compilation:</para> 36 36 37 <screen os="b"><userinput> ./configure --prefix=/cross-tools --enable-cxx\38 --disable-static</userinput></screen>37 <screen os="b"><userinput>CPPFLAGS=-fexceptions ./configure \ 38 --prefix=/cross-tools --enable-cxx --disable-static</userinput></screen> 39 39 40 40 <variablelist os="b1"> 41 41 <title>The meaning of the new configure options:</title> 42 43 <varlistentry> 44 <term><parameter>CPPFLAGS=-fexceptions</parameter></term> 45 <listitem> 46 <para>Allows GMP to handle C++ exceptions thrown by PPL.</para> 47 </listitem> 48 </varlistentry> 42 49 43 50 <varlistentry> -
BOOK/cross-tools/common/m4.xml
r111b12a r76b06f6 23 23 <title>Installation of M4</title> 24 24 25 26 <para os="p1">The following patch contains a fix when building 27 with a host having Glibc or EGLIBC 2.16 or later.</para> 28 29 <screen os="p2"><userinput>patch -Np1 -i ../&m4-gets-patch;</userinput></screen> 30 25 31 <para os="a">Prepare M4 for compilation:</para> 26 32
Note:
See TracChangeset
for help on using the changeset viewer.