zlib 交叉编译方法

1. ./configure --shared --prefix=/安装路径

     make LDSHARED="arm-linux-gcc -shared -Wl,-soname,libz.so.1" CC_FOR_BUILD="arm-linux-gcc" CC="arm-linux-gcc" LD="arm-linux-ld" CPP="arm-linux-g++ -E" AR="arm-linux-ar rc" prefix="/usr/local/arm/2.95.3"    CFLAGS="-fPIC" libz.so.1.2.3 libz.a


2.拷贝zconf.h zlib.h到/usr/local/arm/2.95.3/arm-linux/include/
拷贝 libz.so* 到/usr/local/arm/2.95.3/arm-linux/lib/

你可能感兴趣的:(Build)