aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/file.sh
blob: 532392421bbdf853224fde8fb5e9f1791168d2a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

mkdir build
pushd build > /dev/null || exit 1

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

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