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 --- chapter06/util-linux.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chapter06') 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