lfs/chapter05/shellutils-inst.xml
Mark Hymers a811d13b5e patch explanation
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2001-07-23 11:47:52 +00:00

18 lines
744 B
XML

<sect2>
<title>Installation of Sh-utils</title>
<para>Before Sh-utils is installed, the sh-utils patch file needs
to be unpacked. This patch file is necessary to avoid a conflict of
variable names with glibc when compiling and linking statically.<</para>
<para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-version;.patch &amp;&amp;</userinput>
<userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp;</userinput>
<userinput>make LDFLAGS=-static &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput>
<userinput>cd $LFS/usr/bin &amp;&amp;</userinput>
<userinput>mv date echo false pwd stty $LFS/bin &amp;&amp;</userinput>
<userinput>mv su true uname hostname $LFS/bin</userinput></screen></para>
</sect2>