diff options
Diffstat (limited to 'chapter05/gzip-inst.xml')
-rw-r--r-- | chapter05/gzip-inst.xml | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/chapter05/gzip-inst.xml b/chapter05/gzip-inst.xml index 77737e234..9e92aeef6 100644 --- a/chapter05/gzip-inst.xml +++ b/chapter05/gzip-inst.xml @@ -3,17 +3,14 @@ <sect2> <title>Installation of Gzip</title> -<para>Prepare Gzip to be compiled:</para> - -<para><screen><userinput>./configure --prefix=$LFS/static</userinput></screen></para> - -<para>Continue with compiling the package:</para> - -<para><screen><userinput>make LDFLAGS="-static"</userinput></screen></para> - -<para>And finish off installing the package:</para> - -<para><screen><userinput>make install</userinput></screen></para> +<para><screen><userinput>CFLAGS="-O2 -pipe" ./configure --prefix=/stage1 +make LDFLAGS="-s" +make check +make install +rm -f /stage1/bin/{gunzip,zcat} +ln -s gzip /stage1/bin/gunzip +ln -s gzip /stage1/bin/zcat +ln -s gunzip /stage1/bin/uncompress</userinput></screen></para> </sect2> |