#!/bin/bash

mkdir build
pushd build > /dev/null

    ../configure --disable-bzlib \
               --disable-libseccomp \
               --disable-xzlib \
               --disable-zlib &&
    make &&
popd > /dev/null

./configure --prefix=/usr --host=${LFS_TGT} --build=$(./config.guess) &&
make FILE_COMPILE=$(pwd)/build/src/file &&
make DESTDIR=${LFS} -j1 install