mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@968 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
24 lines
1.0 KiB
XML
24 lines
1.0 KiB
XML
<sect2>
|
|
<title>Installation of Fileutils</title>
|
|
|
|
<para>Before we install fileutils statically, if you are using
|
|
glibc-2.2.3 you need to apply two seds in order to prevent them giving
|
|
segmentation faults once we enter chroot in Chapter 6. The sed commands for
|
|
those using glibc-2.2.3 are:
|
|
|
|
<screen><userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
|
|
<userinput> lib/Makefile.in > tmp &&</userinput>
|
|
<userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
|
|
<userinput> tmp > lib/Makefile.in</userinput></screen></para>
|
|
|
|
<para>Install fileutils by running the following commands:
|
|
<screen><userinput>./configure --disable-nls \</userinput>
|
|
<userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput>
|
|
<userinput>make LDFLAGS=-static &&</userinput>
|
|
<userinput>make install &&</userinput>
|
|
<userinput>cd $LFS/usr/bin &&</userinput>
|
|
<userinput>ln -s ../../bin/install</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|