aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/fileutils-inst.xml
blob: 2d1bafd5dfce4df39460528919551cb3a7fb0e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<sect2>
<title>Installation of Fileutils</title>

<para>Before we install fileutils statically, we apply two seds in
order to prevent them giving segmentation faults (in certain cases) once we
enter chroot in Chapter 6.  Install Fileutils by running the following 
commands:</para>

<para><screen><userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
<userinput>	lib/Makefile.in &gt; tmp &amp;&amp;</userinput>
<userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
<userinput>	tmp &gt; lib/Makefile.in &amp;&amp;</userinput>
<userinput>./configure --disable-nls \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &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>ln -s ../../bin/install</userinput></screen></para>

</sect2>