Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<sect2><title>Installation of Binutils</title>
|
|
|
|
|
2001-09-20 02:47:28 +01:00
|
|
|
<para>This package is known to behave badly when you have changed its
|
2003-01-30 05:06:58 +00:00
|
|
|
default optimization flags (including the -march and -mcpu options).
|
|
|
|
Therefore, if you have defined any environment variables that override
|
|
|
|
default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting
|
2003-08-28 22:19:09 +01:00
|
|
|
or modifying them when building Binutils.</para>
|
2001-09-05 15:13:36 +01:00
|
|
|
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
<para>It is recommended by the Binutils installation documentation to build
|
2003-01-27 22:10:07 +00:00
|
|
|
Binutils outside of the source directory:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-05-13 08:38:47 +01:00
|
|
|
<para><screen><userinput>mkdir ../binutils-build
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
cd ../binutils-build</userinput></screen></para>
|
|
|
|
|
2003-08-28 22:19:09 +01:00
|
|
|
<para>Now prepare Binutils for compilation:</para>
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
|
2003-05-11 00:48:26 +01:00
|
|
|
<para><screen><userinput>../binutils-&binutils-version;/configure \
|
2003-05-13 08:38:47 +01:00
|
|
|
--prefix=/usr --enable-shared</userinput></screen></para>
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
|
2003-08-28 22:19:09 +01:00
|
|
|
<para>Compile the package:</para>
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
|
2003-05-11 00:48:26 +01:00
|
|
|
<para><screen><userinput>make tooldir=/usr</userinput></screen></para>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
<para>Normally, the <emphasis>tooldir</emphasis> (the directory where the
|
2003-08-28 22:19:09 +01:00
|
|
|
executables end up) is set to $(exec_prefix)/$(target_alias), which expands
|
|
|
|
into, for example, <filename>/usr/i686-pc-linux-gnu</filename>. Since we only
|
|
|
|
build for our own system, we don't need this target specific directory in
|
|
|
|
<filename>/usr</filename>. That setup would be used if the system was used to
|
|
|
|
cross-compile (for example compiling a package on an Intel machine that
|
|
|
|
generates code that can be executed on PowerPC machines).</para>
|
|
|
|
|
|
|
|
<para>Check the results:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make check</userinput></screen></para>
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|
|
2003-05-05 23:28:14 +01:00
|
|
|
<para><screen><userinput>make tooldir=/usr install</userinput></screen></para>
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
|
2003-08-28 22:19:09 +01:00
|
|
|
<para>And remove a library that normally is not meant to be installed on its
|
|
|
|
own:</para>
|
|
|
|
|
2003-05-02 19:20:20 +01:00
|
|
|
<para><screen><userinput>rm /usr/lib/libiberty.a</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|