diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index a55c8632b..0702c5466 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -24,6 +24,11 @@ +January 30th, 2002 [markh]: Chapters 5+6: Added +CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" to the configure command for patch. +This fixes compilation on PPC and m68k platforms and doesn't hurt on +x86. + January 30th, 2002 [gerard]: Chapter 5 - Mounting proc: Rephrased the text a bit (it implied you can only mount the proc fs more than once, which isn't true anymore these days). 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 @@ + +Command explanations + +CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE": +Adding -D_GNU_SOURCE 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. + + + 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 @@ Install Patch by running the following commands: -./configure --prefix=$LFS/usr && +CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" ./configure --prefix=$LFS/usr && make LDFLAGS=-static && make install 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; &c5-patch-inst; +&c5-patch-exp; &aa-patch-desc; &aa-patch-dep; diff --git a/chapter06/patch-inst.xml b/chapter06/patch-inst.xml index c985d8682..52c9e7b5d 100644 --- a/chapter06/patch-inst.xml +++ b/chapter06/patch-inst.xml @@ -3,7 +3,7 @@ Install Patch by running the following commands: -./configure --prefix=/usr && +CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" ./configure --prefix=/usr && make && make install diff --git a/index.xml b/index.xml index c9e50c312..e83095f20 100644 --- a/index.xml +++ b/index.xml @@ -177,6 +177,7 @@ +