From f42b2ffcae07ec948da3d74b09f17892d12b0695 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Mon, 30 Aug 2004 12:29:33 +0000 Subject: * Fixed sfdisk miscompilation git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4078 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 4 ++++ chapter06/util-linux.xml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 5b0415d9d..66f26e9aa 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -91,6 +91,10 @@ first a summary, then a detailed log. +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 + + August 30, 2004 [jeremy]: Removing /lib/libproc.so is no longer necessary when installing procps diff --git a/chapter06/util-linux.xml b/chapter06/util-linux.xml index 37ca200d9..ab0c8f40c 100644 --- a/chapter06/util-linux.xml +++ b/chapter06/util-linux.xml @@ -43,6 +43,12 @@ 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. + +sed -i -e 's%^include ../MCONFIG%&\n\nCFLAGS:=$(CFLAGS) -O1%' fdisk/Makefile + Prepare Util-linux for compilation: ./configure -- cgit v1.2.3-54-g00ecf