Changeset 4dbd276 for BOOK/cross-tools/common
- Timestamp:
- Jun 3, 2013, 12:50:47 PM (12 years ago)
- Branches:
- clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- fd7a9f3
- Parents:
- 578cf221
- Location:
- BOOK/cross-tools/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/common/gcc-final.xml
r578cf221 r4dbd276 25 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 26 26 href="gcc-static.xml" 27 xpointer="xpointer(//*[@os='p1'])"/>28 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"30 href="gcc-static.xml"31 xpointer="xpointer(//*[@os='p2'])"/>32 33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"34 href="gcc-static.xml"35 27 xpointer="xpointer(//*[@os='aa'])"/> 36 28 … … 49 41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 50 42 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"59 43 xpointer="xpointer(//*[@os='f'])"/> 60 44 … … 70 54 ../gcc-&gcc-version;/configure --prefix=/cross-tools \ 71 55 --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} \ 72 --with-sysroot=${CLFS} --with-local-prefix=/tools --disable-nls \ 56 --with-sysroot=${CLFS} --with-local-prefix=/tools \ 57 --with-native-system-header-dir=/tools/include --disable-nls \ 58 --with-sysroot=/mnt/clfs --with-local-prefix=/tools --disable-nls \ 73 59 --enable-shared --disable-static --enable-languages=c,c++ \ 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> 60 --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-threads=posix \ 61 --disable-multilib --with-mpc=/cross-tools --with-mpfr=/cross-tools \ 62 --with-gmp=/cross-tools --with-cloog=/cross-tools \ 63 --enable-cloog-backend=isl --with-system-zlib \ 64 --disable-cloog-version-check --enable-checking=release \ 65 --enable-libstdcxx-time</userinput></screen> 78 66 79 67 <variablelist os="bg"> -
BOOK/cross-tools/common/gcc-static.xml
r578cf221 r4dbd276 24 24 and no Threads</title> 25 25 26 <para os="p1">The following patch contains a number of updates to the27 &gcc-version; branch by the GCC developers:</para>28 29 <screen os="p2"><userinput>patch -Np1 -i ../&gcc-branch_update-patch;</userinput></screen>30 31 26 <para os="aa">Make a couple of essential adjustments to the 32 27 <filename>specs</filename> file to ensure GCC uses our build … … 35 30 <screen os="ab"><userinput>patch -Np1 -i ../&gcc-specs-patch;</userinput></screen> 36 31 37 <para os="ag">Change the StartFile Spec and Standard Include Dir so that 38 GCC looks in <filename class="directory">/tools</filename>:</para> 39 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 32 <para os="ag">Change the StartFile Spec so that GCC looks in 33 <filename class="directory">/tools</filename>:</para> 34 35 <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 42 36 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 default45 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>50 37 51 38 <para os="t1">We will create a dummy <filename>limits.h</filename> so … … 69 56 ../gcc-&gcc-version;/configure --prefix=/cross-tools \ 70 57 --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \ 71 --with-sysroot=${CLFS} --with-local-prefix=/tools --disable-nls \ 58 --with-sysroot=${CLFS} --with-local-prefix=/tools \ 59 --with-native-system-header-dir=/tools/include --disable-nls \ 72 60 --disable-shared --with-mpfr=/cross-tools --with-gmp=/cross-tools \ 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> 61 --with-cloog=/cross-tools --with-mpc=/cross-tools --without-headers \ 62 --with-newlib --disable-decimal-float --disable-libgomp --disable-libmudflap \ 63 --disable-libssp --disable-threads --disable-multilib --disable-libatomic \ 64 --disable-libitm --disable-libsanitizer --disable-libquadmath \ 65 --disable-target-libiberty --disable-target-zlib --with-system-zlib \ 66 --enable-cloog-backend=isl --disable-cloog-version-check \ 67 --enable-languages=c --enable-checking=release</userinput></screen> 77 68 78 69 <variablelist os="am"> … … 97 88 </varlistentry> 98 89 90 91 <varlistentry> 92 <term><parameter>--with-native-system-headers-dir=/tools/include</parameter></term> 93 <listitem> 94 <para>This switch ensures that GCC will search for the system headers 95 in <filename class="directory">/tools/include</filename> and that 96 host system headers will not be searched.</para> 97 </listitem> 98 </varlistentry> 99 99 100 <varlistentry> 100 101 <term><parameter>--disable-nls</parameter></term> 101 102 <listitem> 102 <para>This disables internationalization as i18n is not needed for the 103 <para>This disables internationalization as i18n is not needed for the 103 104 cross-compile tools.</para> 104 105 </listitem> … … 158 159 159 160 <varlistentry> 161 <term><parameter>--disable-libatomic</parameter></term> 162 <listitem> 163 <para>The atomic library isn't needed at this time.</para> 164 </listitem> 165 </varlistentry> 166 167 <varlistentry> 168 <term><parameter>--disable-libitm</parameter></term> 169 <listitem> 170 <para>The itm library isn't neeeded at this tiem.</para> 171 </listitem> 172 </varlistentry> 173 174 <varlistentry> 175 <term><parameter>--disable-libsanitizer</parameter></term> 176 <listitem> 177 <para>The sanitizer library isn't needed at this time.</para> 178 </listitem> 179 </varlistentry> 180 181 <varlistentry> 182 <term><parameter>--disable-libquadmath</parameter></term> 183 <listitem> 184 <para>The quadmath library isn't needed at this time.</para> 185 </listitem> 186 </varlistentry> 187 188 <varlistentry> 160 189 <term><parameter>--enable-languages=c</parameter></term> 161 190 <listitem> 162 191 <para>This option ensures that only the C compiler is built.</para> 192 </listitem> 193 </varlistentry> 194 195 <varlistentry> 196 <term><parameter>--enable-checking=release</parameter></term> 197 <listitem> 198 <para>This option selects the complexity of the internal consistency checks and adds error checking within the compiler.</para> 163 199 </listitem> 164 200 </varlistentry>
Note:
See TracChangeset
for help on using the changeset viewer.