2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
2002-02-26 22:03:06 +00:00
|
|
|
<para><userinput>mkdir ../binutils-build:</userinput> The installation
|
2002-04-19 19:27:01 +01:00
|
|
|
instructions for Binutils recommend creating a separate build directory
|
2002-02-26 22:03:06 +00:00
|
|
|
instead of compiling the package inside the source tree. So, we create a
|
2002-03-06 22:14:40 +00:00
|
|
|
binutils-build directory and work from there.</para>
|
2002-02-26 22:03:06 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><userinput>--disable-nls:</userinput> This option disabled
|
2001-06-30 04:19:22 +01:00
|
|
|
internationalization (also known as i18n). We don't need this for our
|
|
|
|
static programs and nls often causes problems when you're linking
|
2001-07-22 20:45:10 +01:00
|
|
|
statically.</para>
|
2001-06-30 04:19:22 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><userinput>LDFLAGS=-all-static:</userinput> Setting the variable LDFLAGS
|
|
|
|
to the value -all-static causes binutils to be linked statically.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><userinput>tooldir=$LFS/usr:</userinput> Normally, the tooldir (the
|
2001-01-24 00:31:17 +00:00
|
|
|
directory where the executables from binutils end up in) is set to
|
|
|
|
$(exec_prefix)/$(target_alias) which expands into, for example,
|
2001-03-25 09:46:07 +01:00
|
|
|
/usr/i686-pc-linux-gnu. Since we only build for our own system, we don't
|
2001-03-18 19:30:50 +00:00
|
|
|
need this target specific directory in $LFS/usr. That setup would be used
|
2001-03-25 09:46:07 +01:00
|
|
|
if the system was used to cross-compile (for example
|
2001-03-18 19:30:50 +00:00
|
|
|
compiling a package on the Intel machine that generates code that can be
|
2001-07-22 20:45:10 +01:00
|
|
|
executed on Apple PowerPC machines).</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|