|
@@ -8,19 +8,25 @@ for compilation. Instead we just run the <userinput>make</userinput>
|
|
program and start compiling, with a few variables changed to suit our
|
|
program and start compiling, with a few variables changed to suit our
|
|
environment:</para>
|
|
environment:</para>
|
|
|
|
|
|
-<para><screen><userinput>make CC="gcc -static -s"
|
|
|
|
-make PREFIX=$LFS/static install</userinput></screen></para>
|
|
|
|
|
|
+<para><screen><userinput>make CC="gcc -static -s"</userinput></screen></para>
|
|
|
|
|
|
-<para>The meaning of the make options are:</para>
|
|
|
|
|
|
+<para>The meaning of the make option is:</para>
|
|
|
|
|
|
<itemizedlist>
|
|
<itemizedlist>
|
|
-
|
|
|
|
<listitem><para><userinput>CC="gcc -static -s":</userinput> The Bzip2 package
|
|
<listitem><para><userinput>CC="gcc -static -s":</userinput> The Bzip2 package
|
|
does not honour the <emphasis>LDFLAGS</emphasis> variable, so instead we set
|
|
does not honour the <emphasis>LDFLAGS</emphasis> variable, so instead we set
|
|
the <emphasis>CC</emphasis> variable which defines which compiler to use.
|
|
the <emphasis>CC</emphasis> variable which defines which compiler to use.
|
|
The <emphasis>-static</emphasis> option tells the compiler to link all
|
|
The <emphasis>-static</emphasis> option tells the compiler to link all
|
|
programs statically.</para></listitem>
|
|
programs statically.</para></listitem>
|
|
|
|
+</itemizedlist>
|
|
|
|
+
|
|
|
|
+<para>And finish off installing the package:</para>
|
|
|
|
|
|
|
|
+<para><screen><userinput>make PREFIX=$LFS/static install</userinput></screen></para>
|
|
|
|
+
|
|
|
|
+<para>The meaning of the make option is:</para>
|
|
|
|
+
|
|
|
|
+<itemizedlist>
|
|
<listitem><para><userinput>PREFIX=$LFS/static:</userinput> Instead of
|
|
<listitem><para><userinput>PREFIX=$LFS/static:</userinput> Instead of
|
|
passing a <emphasis>--prefix=$LFS/static</emphasis> to a configure script,
|
|
passing a <emphasis>--prefix=$LFS/static</emphasis> to a configure script,
|
|
we set the <emphasis>PREFIX</emphasis> variable to accomplish the same goal
|
|
we set the <emphasis>PREFIX</emphasis> variable to accomplish the same goal
|