aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/zlib.xml
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2010-06-27 04:34:24 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2010-06-27 04:34:24 +0000
commit3524efb4c0d3dcea598b93dc07cc1c83b363d111 (patch)
treed582b971f5e4f332e7c519880ccc9a65dddf49cf /chapter06/zlib.xml
parent98a9253192cfca53d12ee72b0f68bbb9ac76adef (diff)
Fix zlib header
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9316 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/zlib.xml')
-rw-r--r--chapter06/zlib.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/chapter06/zlib.xml b/chapter06/zlib.xml
index e4a419a5d..e0e6df760 100644
--- a/chapter06/zlib.xml
+++ b/chapter06/zlib.xml
@@ -41,6 +41,10 @@
<sect2 role="installation">
<title>Installation of Zlib</title>
+ <para>First, fix a type in the package header file:</para>
+
+<screen><userinput remap="pre">sed -i 's/ifdef _LARGEFILE64_SOURCE/ifndef _LARGEFILE64_SOURCE/' zlib.h</userinput></screen>
+
<para>Prepare Zlib for compilation:</para>
<screen><userinput remap="configure">CFLAGS='-mstackrealign -fPIC -O3' ./configure --prefix=/usr</userinput></screen>