#!/bin/bash

patch -Np1 -i ../bash-"${VERSION}"-fixes-1.patch &&
./configure --prefix=/usr \
            --build="$(support/config.guess)" \
            --host="${LFS_TGT}" \
            --without-bash-malloc &&
make &&
make DESTDIR="${LFS}" -j1 install &&
mv "${LFS}"/usr/bin/bash "${LFS}"/bin/bash &&
ln -sv bash "${LFS}"/bin/sh