sudo apt-get install zlib1g-dev
wget http://www.zlib.net/zlib-1.2.11.tar.gz tar -xvf zlib-1.2.11.tar.gz cd zlib-1.2.11 CC=arm-linux-gcc ./configure --prefix=/home/hxl/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root/usr make make install
export LD_LIBRARY_PATH=/home/hxl/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root/usr/lib:$LD_LIBRARY_PATH export LIBRARY_PATH=/home/hxl/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root/usr/lib:$LIBRARY_PATH
./configure --host=arm-linux ac_cv_func_malloc_0_nonnull=yes --cache-file=arm-linux.cache --prefix=/home/hxl/tslib-1.21/arm-tslib