* Correct the fix for the sfdisk problem.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4082 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Matthew Burgess 2004-08-30 13:18:31 +00:00
parent 4148d1a6d0
commit 98b017eaa5
2 changed files with 9 additions and 3 deletions

View File

@ -91,6 +91,12 @@ first a summary, then a detailed log.</para>
</itemizedlist>
</listitem>
<listitem><para>August 30th, 2004 [matt]: chapter06/util-linux.xml.
-funit-at-a-time is implied by -O2, and it was this specific option that was
causing the runtime problems with sfdisk. Instead of dropping to -O1
optimisation, we simply prevent the problematic optimisation by
specifying -fno-unit-at-a-time.</para></listitem>
<listitem><para>August 30th, 2004 [matt]: chapter06/udev.xml. Renumber udev
permissions and rules files to allow easier customisation. Fixes bug 887.
</para></listitem>

View File

@ -44,10 +44,10 @@ mkdir -p /var/lib/hwclock</userinput></screen>
<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>
default optimisation level is used. The following command prevents the
problematic optimisation pass from being used.</para>
<screen><userinput>sed -i -e 's%^include ../MCONFIG%&amp;\n\nCFLAGS:=$(CFLAGS) -O1%' fdisk/Makefile</userinput></screen>
<screen><userinput>sed -i -e 's%^include ../MCONFIG%&amp;\n\nCFLAGS:=$(CFLAGS) -fno-unit-at-a-time%' fdisk/Makefile</userinput></screen>
<para>Prepare Util-linux for compilation:</para>