bzip2-inst.xml 1.1 KB

12345678910111213141516171819202122232425262728293031
  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"
  9. make PREFIX=$LFS/static install</userinput></screen></para>
  10. <para>The meaning of the make options are:</para>
  11. <itemizedlist>
  12. <listitem><para><userinput>CC="gcc -static -s":</userinput> The Bzip2 package
  13. does not honour the <emphasis>LDFLAGS</emphasis> variable, so instead we set
  14. the <emphasis>CC</emphasis> variable which defines which compiler to use.
  15. The <emphasis>-static</emphasis> option tells the compiler to link all
  16. programs statically.</para></listitem>
  17. <listitem><para><userinput>PREFIX=$LFS/static:</userinput> Instead of
  18. passing a <emphasis>--prefix=$LFS/static</emphasis> to a configure script,
  19. we set the <emphasis>PREFIX</emphasis> variable to accomplish the same goal
  20. (since there is no configure script present).</para></listitem>
  21. </itemizedlist>
  22. </sect2>