#!/bin/bash source ../functions/main source /etc/profile check_for_root_user init_log_file rscr mult "Performing pre-install" pre-install ipkg -m noac -l "kernel-headers" -s "kernel-headers" ${KERNEL} ipkg -m acnb -j -l "${PERL}-pass1" ${PERL} ipkg -m noac ${MANPAGES} ipkg ${GLIBC} ipkg -m noac -s tzdata -c ${TZDATA} rscr once "Adjusting toolchain" toolchain-adjust rscr once "Creating temporary C++ toolchain hack" toolchain-hack-cpp-add rscr mult "Testing toolchain" toolchain-test export CC="gcc -isystem /usr/include" export CXX="g++ -isystem /usr/include" export LDFLAGS="-Wl,-rpath-link,/lib" ipkg ${GMP} "--enable-cxx" ipkg ${MPFR} "--with-gmp=/usr" ipkg ${MPC} ipkg ${ISL} ipkg ${CLOOG} "--with-isl=system" unset CC unset CXX unset LDFLAGS ipkg -m acnb ${ZLIB} ipkg ${BINUTILS} ipkg ${GCC} rscr once "Deleting temporary C++ toolchain hack" toolchain-hack-cpp-remove 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} ipkg -d source ${ICU} ipkg -m noac ${GPTFDISK} FORCE_UNSAFE_CONFIGURE=1 ipkg -m acnb ${COREUTILS} "\ --libexecdir=/usr/lib \ --enable-no-install-program=kill,uptime" ipkg -m noac ${IANA} ipkg ${MFOUR} ipkg -m noac ${PROCPS} ipkg ${LIBTOOL} ipkg ${FLEX} ipkg -m acnb -l "${PERL}-pass2" ${PERL} ipkg -m acnb ${BISON} ipkg -m noac ${IPROUTE2} ipkg ${READLINE} ipkg ${AUTOCONF} ipkg ${AUTOMAKE} ipkg ${BASH} "--bindir=/bin --without-bash-malloc --with-installed-readline" /bin/bash +h -c ./hv-install-2 exit $?