Changeset 0eb90658
- Timestamp:
- 10/12/2008 04:09:47 AM (16 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- a5b1d9e
- Parents:
- 3f39abf3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r3f39abf3 r0eb90658 42 42 <itemizedlist> 43 43 <listitem> 44 <para>[dj] - Changed Chapter 5 GCC Pass 1 build to static. Thanks to 45 Jeremy Huntwork for the suggestion and supporting text.</para> 46 </listitem> 47 <listitem> 44 48 <para>[dj] - Added note to Chapter 6 GCC abuot the new include-fixed 45 49 directory and changed the sample output to match.</para> -
chapter05/gcc-pass1.xml
r3f39abf3 r0eb90658 62 62 63 63 <screen><userinput remap="configure">CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure --prefix=/tools \ 64 --with-local-prefix=/tools --disable-nls -- enable-shared \65 --enable-languages=c --disable-decimal-float</userinput></screen>64 --with-local-prefix=/tools --disable-nls --disable-shared \ 65 --enable-languages=c</userinput></screen> 66 66 67 67 <variablelist> … … 91 91 92 92 <varlistentry> 93 <term><parameter>-- enable-shared</parameter></term>93 <term><parameter>--disable-shared</parameter></term> 94 94 <listitem> 95 <para>This switch allows the building of <filename 96 class="libraryfile">libgcc_s.so.1</filename> and 97 <filename class="libraryfile">libgcc_eh.a</filename>. 98 Having <filename class="libraryfile">libgcc_eh.a</filename> 99 available ensures that the configure script for Glibc (the 100 next package we compile) produces the proper results.</para> 95 <para>This switch forces gcc to link its internal libraries 96 statically. We do this to avoid possible issues with the host 97 system.</para> 101 98 </listitem> 102 99 </varlistentry> … … 131 128 <screen><userinput remap="install">make install</userinput></screen> 132 129 130 <para>Using <parameter>--disable-shared</parameter> means that the 131 <filename>libgcc_eh.a</filename> file isn't created and installed. The 132 Glibc package depends on this library as it uses 133 <parameter>-lgcc_eh</parameter> within its build system. We can satisfy 134 that dependency by creating a symlink to <filename>libgcc.a</filename>, 135 since that file will end up containing the objects normally contained in 136 <filename>libgcc_eh.a</filename>.</para> 137 138 <screen><userinput remap="install">ln -vs libgcc.a `gcc -print-libgcc-file-name | \ 139 sed 's/libgcc/&_eh/'`</userinput></screen> 140 133 141 <para>As a finishing touch, create a symlink. Many programs and scripts 134 142 run <command>cc</command> instead of <command>gcc</command>, which is
Note:
See TracChangeset
for help on using the changeset viewer.