lfs/chapter05/binutils-static-exp.sgml
Gerard Beekmans 6370fa6cff Initial commit - LFS 2.4.4 files
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@14 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2001-01-24 00:31:17 +00:00

29 lines
976 B
Plaintext

<sect2>
<title>Command explanations</title>
<para>
<userinput>make -e:</userinput> The -e paramater tells make that
environment variables take precedence over variables defined in the
Makefile file(s). This is needed in order to successfully link binutils
statically.
</para>
<para>
<userinput>LDFLAGS=-all-static:</userinput> Setting the variable LDFLAGS
to the value -all-static causes binutils to be linked statically.
</para>
<para>
<userinput>tooldir=$LFS/usr:</userinput> Normally the tooldir (the
directory where the executables from binutils end up in) is set to
$(exec_prefix)/$(target_alias) which expands into, for example,
/usr/i686-pc-linux-gnu. Since we only build for our own system we don't
need this target specific directory in $LFS/usr. You would use that
setup if you use your system to cross-compile (for example you would
compile a package on your Intel machine that generates code that can be
executed on Apple PowerPC machines).
</para>
</sect2>