ソースを参照

added CPPFLAGS=-D_GNU_SOURCE to findutils to promote proper compiling on non-x86 architectures

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2285 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 22 年 前
コミット
f24558cdff
3 ファイル変更6 行追加2 行削除
  1. 4 0
      chapter01/changelog.xml
  2. 1 1
      chapter05/findutils-inst.xml
  3. 1 1
      chapter06/findutils-inst.xml

+ 4 - 0
chapter01/changelog.xml

@@ -57,6 +57,10 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>January 6th, 2003 [gerard]: Chapter 05+06 - Findutils:
+Added <emphasis>CPPFLAGS=-D_GNU_SOURCE</emphasis> to promote proper
+compiling on non-x86 architectures.</para></listitem>
+
 <listitem><para>January 6th, 2003 [gerard]: Chapter 06 - Zlib: Added CFLAGS
 variable to define -fPIC so the dynamic library gets compiled properly at
 all times.</para></listitem>

+ 1 - 1
chapter05/findutils-inst.xml

@@ -7,7 +7,7 @@ install it.</para>
 <para>Install Findutils by running the following commands:</para>
 
 <para><screen><userinput>patch -Np1 -i ../findutils-&findutils-patch-version;.patch &amp;&amp;
-CPPFLAGS=-Dre_max_failures=re_max_failures2 \
+CPPFLAGS="-Dre_max_failures=re_max_failures2 -D_GNU_SOURCE"
 &nbsp;&nbsp;&nbsp;&nbsp;LDFLAGS="-static" ./configure --prefix=$LFS/static &amp;&amp;
 make &amp;&amp;
 make install</userinput></screen></para>

+ 1 - 1
chapter06/findutils-inst.xml

@@ -8,7 +8,7 @@ install it.</para>
 
 <para><screen><userinput>patch -Np1 -i ../findutils-&findutils-patch-version;.patch &amp;&amp;
 patch -Np1 -i ../findutils-&findutils-segfault-patch-version;-segfault.patch &amp;&amp;
-./configure --prefix=/usr &amp;&amp;
+CPPFLAGS="-D_GNU_SOURCE" ./configure --prefix=/usr &amp;&amp;
 make libexecdir=/usr/bin &amp;&amp;
 make libexecdir=/usr/bin install</userinput></screen></para>