aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/patch-inst.xml
blob: ff99185a09e6d8f4153cb23aace5bd6f27f053a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2>
<title>Installation of Patch</title>

<para>Prepare Patch to be compiled:</para>

<para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE \
&nbsp;&nbsp;&nbsp;&nbsp;LDFLAGS="-static" ./configure --prefix=$LFS/static</userinput></screen></para>

<para>The meaning of the configure option is:</para>

<itemizedlist>
<listitem><para><userinput>CPPFLAGS=-D_GNU_SOURCE</userinput>: This flag
fixes installation problems of this package on PPC and m68k platforms (that
we know of). It doesn't hurt compilation on other platforms, such as x86,
so we do it by default.</para></listitem>
</itemizedlist>

<para>Continue with compiling the package:</para>

<para><screen><userinput>make</userinput></screen></para>

<para>And finish off installing the package:</para>

<para><screen><userinput>make install</userinput></screen></para>

</sect2>