binutils-static-exp.sgml 976 B

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