#!/bin/bash source ../functions/main source /etc/profile check_for_root_user init_log_file rscr mult "Performing pre-install" pre-install ipkg -j -l "${PERL}-pass1" ${PERL} ipkg -c -m noac -l "kernel-headers" -s "kernel-headers" ${KERNEL} ipkg -m noac ${MANPAGES} ipkg ${EGLIBC} rscr once "Adjusting toolchain" toolchain-adjust rscr mult "Testing toolchain" toolchain-test export CC="gcc -isystem /usr/include" export CXX="g++ -isystem /usr/include" export LDFLAGS="-Wl,-rpath-link,/lib" CPPFLAGS=-fexceptions \ ipkg ${GMP} "--enable-cxx --enable-mpbsd" ipkg ${MPFR} "--enable-shared --with-gmp=/usr" ipkg ${MPC} CPPFLAGS=-fexceptions \ ipkg ${PPL} "--enable-shared --disable-optimization" ipkg ${CLOOG} "--enable-shared" unset CC unset CXX unset LDFLAGS ipkg -m acnb ${ZLIB} ipkg ${BINUTILS} ipkg ${GCC} rscr mult "Testing toolchain" toolchain-test ipkg ${SED} "--bindir=/bin" ipkg ${LIBFFI} ipkg ${PYTHON} "--enable-shared" # Specify LIBFFI flags because pkg-config is not yet installed: LIBFFI_CFLAGS="-I/usr/include" LIBFFI_LIBS="-L/usr/lib -lffi" ipkg ${GLIB} ipkg ${PKG_CONFIG} ipkg ${NCURSES} ipkg ${UTIL_LINUX} ipkg ${E2FSPROGS} FORCE_UNSAFE_CONFIGURE=1 ipkg -m acnb ${COREUTILS} ipkg -m noac ${IANA} ipkg ${MFOUR} ipkg ${BISON} ipkg -m noac ${PROCPS} ipkg ${LIBTOOL} ipkg ${FLEX} ipkg -m noac ${IPROUTE2} ipkg -l "${PERL}-pass2" ${PERL} ipkg ${READLINE} ipkg ${AUTOCONF} ipkg ${AUTOMAKE} ipkg ${BASH} "--bindir=/bin --without-bash-malloc --with-installed-readline" /bin/bash +h -c ./hv-install-2 exit $?