aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/patch-exp.xml11
-rw-r--r--chapter05/patch-inst.xml2
-rw-r--r--chapter05/patch.xml1
3 files changed, 13 insertions, 1 deletions
diff --git a/chapter05/patch-exp.xml b/chapter05/patch-exp.xml
new file mode 100644
index 000000000..82a5489e8
--- /dev/null
+++ b/chapter05/patch-exp.xml
@@ -0,0 +1,11 @@
+<sect2>
+<title>Command explanations</title>
+
+<para><userinput>CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE": </userinput>
+Adding <userinput>-D_GNU_SOURCE</userinput> command before
+we configure patch fixes installation of the package on PPC and m68k
+platforms (that we know of). It also doesn't hurt compilation on other
+platforms (such as x86) so we do it by default.</para>
+
+</sect2>
+
diff --git a/chapter05/patch-inst.xml b/chapter05/patch-inst.xml
index 4eebac903..6a1d5d5cb 100644
--- a/chapter05/patch-inst.xml
+++ b/chapter05/patch-inst.xml
@@ -3,7 +3,7 @@
<para>Install Patch by running the following commands:</para>
-<para><screen><userinput>./configure --prefix=$LFS/usr &amp;&amp;
+<para><screen><userinput>CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" ./configure --prefix=$LFS/usr &amp;&amp;
make LDFLAGS=-static &amp;&amp;
make install</userinput></screen></para>
diff --git a/chapter05/patch.xml b/chapter05/patch.xml
index ab2dd1074..f0a5007fe 100644
--- a/chapter05/patch.xml
+++ b/chapter05/patch.xml
@@ -6,6 +6,7 @@
Estimated required disk space: &patch-compsize-static;</screen>
&c5-patch-inst;
+&c5-patch-exp;
&aa-patch-desc;
&aa-patch-dep;