#!/bin/bash . ./scripts/colors.sh . ./scripts/funcs.sh . ./scripts/config.sh tcc_build() { pkgname=tcc pkgver=0.9.27 printf "$GREEN** Building and installing ${pkgname}\n$RESET" mkdir $build/${pkgname} cd $build/${pkgname} tar -xf $root/downloads/${pkgname}-${pkgver}.tar.bz2 check $? "Extract ${pkgname}" cd ${pkgname}-${pkgver} export QEMU_LD_PREFIX=${rootfspath} ./configure \ --prefix=/usr \ --cross-prefix=${CROSS_COMPILE}- \ --cpu=${ARCH} \ --disable-static \ --config-uClibc \ --with-sysroot=${rootfspath} check $? "Configure ${pkgname}" make $makeflags check $? "Build ${pkgname}" make DESTDIR=$rootfspath install check $? "Installing to rootfs ${pkgname}" }