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.

28 lines
856 B

#!/usr/bin/env bash
mkdir build
pushd build || return 1
../configure --prefix="${LFS}"/tools AWK=gawk
make -C include
make -C progs tic
install progs/tic "${LFS}"/tools/bin
popd || exit 1
./configure --prefix=/usr \
--host="${LFS_TGT}" \
--build="$(./config.guess)" \
--mandir=/usr/share/man \
--with-manpage-format=normal \
--with-shared \
--without-normal \
--with-cxx-shared \
--without-debug \
--without-ada \
--disable-stripping \
AWK=gawk
make
make DESTDIR="${LFS}" install
ln -sv libncursesw.so "${LFS}"/usr/lib/libncurses.so
sed -e 's/^#if.*XOPEN.*$/#if 1/' -i "${LFS}"/usr/include/curses.h