Bash script to build LFS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
406 B

#!/usr/bin/env bash
mkdir build
pushd build || return 1
../configure --disable-bzlib \
--disable-libseccomp \
--disable-xzlib \
--disable-zlib
make
popd || exit 1
./configure --prefix=/usr --host="${LFS_TGT}" --build="$(./config.guess)"
make FILE_COMPILE="$(pwd)"/build/src/file
make DESTDIR="${LFS}" install
rm "${LFS}"/usr/lib/libmagic.la