2003-01-01 23:05:27 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
2003-01-02 22:01:49 +00:00
|
|
|
<title>Glibc installation</title>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-08-27 22:29:30 +01:00
|
|
|
<para>The Glibc build system is very well self-contained and will install
|
|
|
|
perfectly, even though our compiler specs file and linker scripts are still
|
|
|
|
pointing at <filename>/stage1</filename>. We cannot adjust the specs and
|
|
|
|
ldscripts before the Glibc install, because the Glibc autoconf tests would then
|
|
|
|
give bogus results and thus defeat our goal of achieving a clean build.</para>
|
|
|
|
|
2003-02-20 13:59:14 +00:00
|
|
|
<para>The documentation that comes with Glibc recommends to build the package
|
|
|
|
not in the source directory but in a separate, dedicated directory:</para>
|
2003-01-01 14:14:38 +00:00
|
|
|
|
2003-05-13 08:38:47 +01:00
|
|
|
<para><screen><userinput>mkdir ../glibc-build
|
2003-01-02 20:55:58 +00:00
|
|
|
cd ../glibc-build</userinput></screen></para>
|
2003-01-01 14:14:38 +00:00
|
|
|
|
2003-08-30 04:57:49 +01:00
|
|
|
<para>Also apply the same patch as we used previously:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../glibc-2.3.2-sscanf-1.patch
|
|
|
|
</userinput></screen></para>
|
|
|
|
|
2003-08-27 22:29:30 +01:00
|
|
|
<para>Now prepare Glibc for compilation:</para>
|
2003-01-01 14:14:38 +00:00
|
|
|
|
2003-05-11 00:48:26 +01:00
|
|
|
<para><screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
|
2003-01-01 14:14:38 +00:00
|
|
|
--disable-profile --enable-add-ons \
|
2003-05-21 19:43:13 +01:00
|
|
|
--libexecdir=/usr/bin --with-headers=/usr/include</userinput></screen></para>
|
2002-09-13 14:43:14 +01:00
|
|
|
|
2003-08-27 22:29:30 +01:00
|
|
|
<para>The meaning of the configure options:</para>
|
2003-01-27 22:10:07 +00:00
|
|
|
|
|
|
|
<itemizedlist>
|
2003-02-03 23:24:24 +00:00
|
|
|
<listitem><para><userinput>--disable-profile</userinput>: This disables the
|
2003-02-20 13:59:14 +00:00
|
|
|
building of the libraries with profiling information. Omit this option if you
|
|
|
|
plan to do profiling.</para></listitem>
|
2003-01-27 22:10:07 +00:00
|
|
|
|
2003-02-20 13:59:14 +00:00
|
|
|
<listitem><para><userinput>--enable-add-ons</userinput>: This enables any
|
|
|
|
add-ons that we installed with Glibc, in our case Linuxthreads.</para></listitem>
|
2003-01-27 22:10:07 +00:00
|
|
|
|
2003-02-03 23:24:24 +00:00
|
|
|
<listitem><para><userinput>--libexecdir=/usr/bin</userinput>: This will
|
2003-02-20 13:59:14 +00:00
|
|
|
cause the <filename>pt_chown</filename> program to be installed in the
|
|
|
|
<filename>/usr/bin</filename> directory.</para></listitem>
|
2003-08-27 22:29:30 +01:00
|
|
|
|
|
|
|
<listitem><para><userinput>--with-headers=/usr/include</userinput>: This
|
|
|
|
ensures that the kernel headers in <filename>/usr/include</filename> are used
|
|
|
|
for this build. If you don't pass this switch then the headers from
|
|
|
|
<filename>/stage1/include</filename> are used which of course is not ideal
|
|
|
|
(although they should be identical). Using the switch has the advantage
|
|
|
|
that you will be informed immediately should you have forgotten to install the
|
|
|
|
kernel headers into <filename>/usr/include</filename>.</para></listitem>
|
2003-01-27 22:10:07 +00:00
|
|
|
</itemizedlist>
|
|
|
|
|
2003-08-27 22:29:30 +01:00
|
|
|
<para>Compile the package:</para>
|
2003-01-27 22:10:07 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>make</userinput></screen></para>
|
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>Test the results:</para>
|
2003-01-01 14:14:38 +00:00
|
|
|
|
2003-05-02 19:20:20 +01:00
|
|
|
<para><screen><userinput>make check</userinput></screen></para>
|
|
|
|
|
2003-08-27 22:29:30 +01:00
|
|
|
<para>And install the package:</para>
|
|
|
|
|
2003-01-27 22:10:07 +00:00
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
2003-01-01 14:14:38 +00:00
|
|
|
|
2003-08-27 22:29:30 +01:00
|
|
|
<para>The locales that can make your system respond in a different language
|
|
|
|
weren't installed by the above command. Do it with this:</para>
|
2003-01-01 14:14:38 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>make localedata/install-locales</userinput></screen></para>
|
|
|
|
|
2003-02-20 13:59:14 +00:00
|
|
|
<para>An alternative to running the previous command is to install only those
|
2003-08-27 22:29:30 +01:00
|
|
|
locales which you need or want. This can be achieved using the
|
|
|
|
<userinput>localedef</userinput> command. Information on this can be found in
|
|
|
|
the <filename>INSTALL</filename> file in the
|
|
|
|
<filename>glibc-&glibc-version;</filename> tree.</para>
|
2003-01-01 14:14:38 +00:00
|
|
|
|
2003-08-27 22:29:30 +01:00
|
|
|
<para>Finally, build the linuxthreads man pages:</para>
|
2003-05-11 18:47:47 +01:00
|
|
|
|
|
|
|
<para><screen><userinput>make -C ../glibc-2.3.2/linuxthreads/man</userinput></screen></para>
|
|
|
|
|
2003-08-27 22:29:30 +01:00
|
|
|
<para>And install these pages:</para>
|
2003-05-11 18:47:47 +01:00
|
|
|
|
|
|
|
<para><screen><userinput>make -C ../glibc-2.3.2/linuxthreads/man install</userinput></screen></para>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|