Changeset 4dbd276 for BOOK/cross-tools/common/gcc-static.xml
- Timestamp:
- Jun 3, 2013, 12:50:47 PM (11 years ago)
- Branches:
- clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- fd7a9f3
- Parents:
- 578cf221
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.