mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 14:07:39 +00:00
81a47c0302
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@337 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
59 lines
1.7 KiB
XML
59 lines
1.7 KiB
XML
<sect2>
|
|
<title>Installation of M4</title>
|
|
|
|
<para>
|
|
Install M4 by running the following commands:
|
|
</para>
|
|
|
|
<blockquote><literallayout>
|
|
|
|
<userinput>./configure --prefix=/usr &&</userinput>
|
|
<userinput>make &&</userinput>
|
|
<userinput>make install</userinput>
|
|
|
|
</literallayout></blockquote>
|
|
|
|
<para>
|
|
If the base system is running a 2.0 kernel and the Glibc version is
|
|
2.1 then a user will most likely get problems executing M4 in the
|
|
chroot'ed environment due to incompatibilities between the M4 program,
|
|
Glibc-2.1 and the running 2.0 kernel. If he has problems executing the
|
|
m4 program in the chroot'ed environment (for example when he installs
|
|
the autoconf and automake packages) he'll have to exit the chroot'ed
|
|
environment and compile M4 statically. This way the binary is linked
|
|
against Glibc 2.0 (if he runs kernel 2.0, Glibc version is 2.0 as
|
|
well on a decent system. Kernel 2.0 and Glibc-2.1 don't mix very well)
|
|
and won't give any problems.
|
|
</para>
|
|
|
|
<para>
|
|
To create a statically linked version of M4, execute the following
|
|
commands:
|
|
</para>
|
|
|
|
<blockquote><literallayout>
|
|
|
|
<userinput>logout</userinput>
|
|
<userinput>cd $LFS/usr/src/m4-1.4</userinput>
|
|
<userinput>./configure --prefix=/usr --disable-nls</userinput>
|
|
<userinput>make LDFLAGS=-static</userinput>
|
|
<userinput>make prefix=$LFS/usr install</userinput>
|
|
|
|
</literallayout></blockquote>
|
|
|
|
<para>
|
|
Now the chroot'ed environment can be re-entered and the
|
|
next package an be installed. If M4 should be re-compiled dynamically,
|
|
this can be done
|
|
after having rebooted into the LFS system rather than chrooting into it.
|
|
</para>
|
|
|
|
<blockquote><literallayout>
|
|
|
|
<userinput>chroot $LFS env -i HOME=/root bash --login</userinput>
|
|
|
|
</literallayout></blockquote>
|
|
|
|
</sect2>
|
|
|