MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« File 64-bit HOME GNU Readline 64-bit »

File 32-bit

Name: File 32-bit
Summary: A tool to determine the type of a file from heuristics
License: BSD 2-Clause
Version: 5.46
URL: http://ftp.astrom.com/pub/file/file-5.46.tar.xz

Average Build Time: less than 0.1 SBU
Used Install Space: 19 MiB

Configuration

To configure File 32-bit for install into the build root, run the following command:

make distclean
CC="gcc -m32" ./configure \
    --prefix=/usr         \
    --libdir=/usr/lib     \
    --libexecdir=/usr/lib \
    --host=i686-pc-linux-gnu

Compilation and Installation

To compile File 32-bit, run the following command:

make

Finally, to install File 32-bit into the build tree, run the following command:

make DESTDIR=$PWD/DESTDIR install
cp -Rv DESTDIR/usr/lib/* /usr/lib
rm -fv /usr/lib/libmagic.la

Contents

See the contents section of the 64-bit build of File for details.

Navigation    
« File 64-bit HOME GNU Readline 64-bit »