# http://developer.asustor.com/tools # from https://neerajcodes.wordpress.com/2017/08/06/intro-to-cross-compilation/ export CCHOST=arm-marvell-linux-gnueabi export TOOLCAHIN=../$CCHOST/bin/$CCHOST export CC=$TOOLCAHIN-gcc export LD=$TOOLCAHIN-ld export CPP=$TOOLCAHIN-cpp export CXX=$TOOLCAHIN-g++ export AR=$TOOLCAHIN-ar ./configure --prefix=$(pwd)/target/ --host=CCHOST