瀏覽代碼

* Fixed sfdisk miscompilation

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4078 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Matthew Burgess 21 年之前
父節點
當前提交
f42b2ffcae
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. 4 0
      chapter01/changelog.xml
  2. 6 0
      chapter06/util-linux.xml

+ 4 - 0
chapter01/changelog.xml

@@ -91,6 +91,10 @@ first a summary, then a detailed log.</para>
 </itemizedlist>
 </listitem>
 
+<listitem><para>August 30th, 2004 [matt]: Drop optimisation level of util-linux
+from O2 to O1, so as sfdisk works properly when compiled with gcc-3.4.1</para>
+</listitem>
+
 <listitem><para>August 30, 2004 [jeremy]: Removing /lib/libproc.so is no longer
 necessary when installing procps</para></listitem>
 

+ 6 - 0
chapter06/util-linux.xml

@@ -43,6 +43,12 @@ mkdir -p /var/lib/hwclock</userinput></screen>
 <sect2 role="installation">
 <title>Installation of Util-linux</title>
 
+<para>GCC-&gcc-version; miscompiles <command>sfdisk</command> if the
+default optimisation level is used.  The following command fixes this
+issue by changing the optimisation level from O2 to O1.</para>
+
+<screen><userinput>sed -i -e 's%^include ../MCONFIG%&amp;\n\nCFLAGS:=$(CFLAGS) -O1%' fdisk/Makefile</userinput></screen>
+
 <para>Prepare Util-linux for compilation:</para>
 
 <screen><userinput>./configure</userinput></screen>