From 5d3dcef94acf83aacbff5e31d5e4d63350d4987d Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Wed, 30 Jan 2002 16:54:26 +0000 Subject: [Bug 242] patch 2.5.4 needs -D_GNU_SOURCE on PPC git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1515 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/patch-exp.xml | 11 +++++++++++ chapter05/patch-inst.xml | 2 +- chapter05/patch.xml | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 chapter05/patch-exp.xml (limited to 'chapter05') 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; -- cgit v1.2.3-54-g00ecf