2021-07-09 16:28:46 -04:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
export CFLAGS="$CFLAGS -static"
|
|
|
|
|
|
|
|
patch -p1 < bash-5.1-parallel_make.patch
|
|
|
|
|
|
|
|
for patch in bash51-0??; do
|
|
|
|
patch -p0 < "$patch"
|
|
|
|
done
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--without-bash-malloc \
|
|
|
|
--without-installed-readline \
|
2022-02-17 08:33:27 -05:00
|
|
|
--disable-nls \
|
|
|
|
--enable-static-link
|
2021-07-09 16:28:46 -04:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR="$1" install
|
|
|
|
|
|
|
|
ln -s bash "$1/usr/bin/sh"
|