mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
[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
This commit is contained in:
parent
711e548c59
commit
5d3dcef94a
@ -24,6 +24,11 @@
|
||||
|
||||
<itemizedlist>
|
||||
|
||||
<listitem><para>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.</para></listitem>
|
||||
|
||||
<listitem><para>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).</para></listitem>
|
||||
|
11
chapter05/patch-exp.xml
Normal file
11
chapter05/patch-exp.xml
Normal file
@ -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>
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<para>Install Patch by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr &&
|
||||
<para><screen><userinput>CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" ./configure --prefix=$LFS/usr &&
|
||||
make LDFLAGS=-static &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
Estimated required disk space: &patch-compsize-static;</screen>
|
||||
|
||||
&c5-patch-inst;
|
||||
&c5-patch-exp;
|
||||
&aa-patch-desc;
|
||||
&aa-patch-dep;
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<para>Install Patch by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
<para><screen><userinput>CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" ./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
|
@ -177,6 +177,7 @@
|
||||
<!ENTITY c5-mawk-inst SYSTEM "chapter5/mawk-inst.xml">
|
||||
<!ENTITY c5-patch SYSTEM "chapter5/patch.xml">
|
||||
<!ENTITY c5-patch-inst SYSTEM "chapter5/patch-inst.xml">
|
||||
<!ENTITY c5-patch-exp SYSTEM "chapter5/patch-exp.xml">
|
||||
<!ENTITY c5-sed SYSTEM "chapter5/sed.xml">
|
||||
<!ENTITY c5-sed-inst SYSTEM "chapter5/sed-inst.xml">
|
||||
<!ENTITY c5-shellutils SYSTEM "chapter5/shellutils.xml">
|
||||
|
Loading…
Reference in New Issue
Block a user