aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/util-linux.xml6
1 files changed, 6 insertions, 0 deletions
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</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>