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.

26 lines
641 B

#!/usr/bin/env bash
# shellcheck disable=SC2016
sed '6031s/$add_dir//' -i ltmain.sh
mkdir build
pushd build || return 1
../configure \
--prefix=/usr \
--build="$(../config.guess)" \
--host="${LFS_TGT}" \
--disable-nls \
--enable-shared \
--enable-gprofng=no \
--disable-werror \
--enable-64-bit-bfd \
--enable-new-dtags \
--enable-default-hash-style=gnu
make
make DESTDIR="${LFS}" install
popd || exit 1
rm "${LFS}"/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes,sframe}.{a,la}