From 98b017eaa53e459c321f160991e23ddeb77d6044 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Mon, 30 Aug 2004 13:18:31 +0000 Subject: * Correct the fix for the sfdisk problem. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4082 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 6 ++++++ chapter06/util-linux.xml | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 168e555f6..ce30fe01c 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -91,6 +91,12 @@ first a summary, then a detailed log. +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. + August 30th, 2004 [matt]: chapter06/udev.xml. Renumber udev permissions and rules files to allow easier customisation. Fixes bug 887. diff --git a/chapter06/util-linux.xml b/chapter06/util-linux.xml index ab0c8f40c..a9ffdf088 100644 --- a/chapter06/util-linux.xml +++ b/chapter06/util-linux.xml @@ -44,10 +44,10 @@ mkdir -p /var/lib/hwclock Installation of Util-linux GCC-&gcc-version; miscompiles sfdisk if the -default optimisation level is used. The following command fixes this -issue by changing the optimisation level from O2 to O1. +default optimisation level is used. The following command prevents the +problematic optimisation pass from being used. -sed -i -e 's%^include ../MCONFIG%&\n\nCFLAGS:=$(CFLAGS) -O1%' fdisk/Makefile +sed -i -e 's%^include ../MCONFIG%&\n\nCFLAGS:=$(CFLAGS) -fno-unit-at-a-time%' fdisk/Makefile Prepare Util-linux for compilation: -- cgit v1.2.3-54-g00ecf