bzip2-inst.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Bzip2</title>
  4. <para>Since the Bzip2 package has no configure script we can't prepare it
  5. for compilation. Instead we just run the <userinput>make</userinput>
  6. program and start compiling, with a few variables changed to suit our
  7. environment:</para>
  8. <para><screen><userinput>make CC="gcc -static -s"</userinput></screen></para>
  9. <para>The meaning of the make option is:</para>
  10. <itemizedlist>
  11. <listitem><para><userinput>CC="gcc -static -s":</userinput> The Bzip2 package
  12. does not honour the <emphasis>LDFLAGS</emphasis> variable, so instead we set
  13. the <emphasis>CC</emphasis> variable which defines which compiler to use.
  14. The <emphasis>-static</emphasis> option tells the compiler to link all
  15. programs statically.</para></listitem>
  16. </itemizedlist>
  17. <para>And finish off installing the package:</para>
  18. <para><screen><userinput>make PREFIX=$LFS/static install</userinput></screen></para>
  19. <para>The meaning of the make option is:</para>
  20. <itemizedlist>
  21. <listitem><para><userinput>PREFIX=$LFS/static:</userinput> Instead of
  22. passing a <emphasis>--prefix=$LFS/static</emphasis> to a configure script,
  23. we set the <emphasis>PREFIX</emphasis> variable to accomplish the same goal
  24. (since there is no configure script present).</para></listitem>
  25. </itemizedlist>
  26. </sect2>