MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 3 - Temporary Tools

Navigation    
« Temporary Tools Overview HOME NCurses TIC »

GNU M4 Macro Processor

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

Configuration

To configure GNU M4 for install into the build root, run the following command:

sed 's/\[\[__nodiscard__]]//' -i lib/config.hin
./configure --prefix=/usr   \
            --host=$BRFS_TARGET \
            --build=$BRFS_HOST  \
            --without-included-regex \
            --disable-dependency-tracking \
        	gl_cv_func_isnanl_works=yes \
	        gl_cv_func_printf_directive_n=yes \
	        gl_cv_func_printf_infinite_long_double=yes

Compilation and Installation

To compile GNU M4, run the following command:

make

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

make DESTDIR=${BRFS} install

More details about this package is covered later in the core system build.

Navigation    
« Temporary Tools Overview HOME NCurses TIC »