In this chapter we are going to compile and install M4-1.4.18 package.
Note :
- Please check the version of the package when you compile and install, at the time of writing the package was at version 1.4.18
- You should be logged in as lfs user, when you perform the actions described here.
- Change directory to the sources folder (/mnt/lfs/sources)
- Please check http://linuxfromscratch.org/lfs/view/stable/chapter06/m4.html for more details.
Unpack the M4 tar ball package and change directory to it.
$ tar -xvf m4-1.4.18.tar.xz
$ cd m4-1.4.18
Make some fixes required by glibc-2.28 and later.
$ sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
$ echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
Preparing M4 for compilation
$ ./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(build-aux/config.guess)
Compiling M4
make -j4
Installing M4
make DESTDIR=$LFS install
No comments:
Post a Comment