MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« PCRE2 32-bit HOME GNU Bc »

GNU M4

Name: GNU M4
Summary: A small macro processor runtime often used in Makefiles
License: GPL v3
Version: 1.4.21
URL: https://ftp.gnu.org/gnu/m4/m4-1.4.21.tar.xz

Average Build Time: 0.4 SBU
Used Install Space: 60 MiB

Configuration

To configure GNU M4 for installation into the build root, run the following commands:

sed 's/\[\[__nodiscard__]]//' -i lib/config.hin
sed 's/test-stdalign\$(EXEEXT) //' -i tests/Makefile.in
./configure --prefix=/usr

Compilation and Installation

To compile GNU M4, run the following command:

make

Next, run the test suite:

make check

Note that the tests appear to have a broken test around testing file spawning actions that hit 100% CPU utilisation, at least inside the chroot.

Finally, to install GNU M4 into the build tree, run the following command:

make install

Contents

Contents  
Installed Programs m4
Navigation    
« PCRE2 32-bit HOME GNU Bc »