shellutils-inst.xml 744 B

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