浏览代码

Fix GCC's libiberty testsuite due to a conflict with Glibc's getline function.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9144 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Matthew Burgess 15 年之前
父节点
当前提交
ed92274237
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 4 0
      chapter01/changelog.xml
  2. 5 0
      chapter06/gcc.xml

+ 4 - 0
chapter01/changelog.xml

@@ -40,6 +40,10 @@
     <listitem>
       <para>2010-01-03</para>
       <itemizedlist>
+        <listitem>
+          <para>[matthew] Prevent a failure in GCC's testsuite due to a conflict
+          with Glibc's getline function.</para>
+        </listitem>
         <listitem>
           <para>[matthew] Upgrade to Readline-6.1. Fixes
           <ulink url="&lfs-ticket-root;2540">#2540</ulink>.</para>

+ 5 - 0
chapter06/gcc.xml

@@ -66,6 +66,11 @@ esac</userinput></screen>
 
 <screen><userinput remap="pre">sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in</userinput></screen>
 
+    <para>Apply a <command>sed</command> substitution to prevent a testsuite
+error:</para>
+
+<screen><userinput remap="pre">sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c</userinput></screen>
+
     <para>The GCC documentation recommends building GCC outside of the source
     directory in a dedicated build directory:</para>