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.

43 lines
1.0 KiB

#!/usr/bin/env bash
mkdir -v build
cd build || exit 1
../configure --prefix=/usr \
--sysconfdir=/etc \
--enable-ld=default \
--enable-plugins \
--enable-shared \
--disable-werror \
--enable-64-bit-bfd \
--enable-new-dtags \
--with-system-zlib \
--enable-defualt-hash-style=gnu
make tooldir=/usr
:>/tmp/binutils_make_check.log
if ! make -k check | tee /tmp/binutils_make_check.log
then
grep ^FAIL /tmp/binutils_make_check.log |cut --delimiter=' ' --fields=2 | while IFS= read -r failure
do
case "${failure}" in
tmpdir/gp-gmon)
continue
;;
tmpdir/gp-archive|tmpdir/gp-collect-app_F|tmpdir/setpath_map)
continue
;;
*)
echo "test failure"
exit 1
;;
esac
done
fi
make tooldir=/usr install
rm -rfv /usr/lib/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a /usr/share/doc/gprofng/