mips交叉编译zlib

export CC=/opt/gcc-4.9.3-64-gnu/bin/mips64el-linux-gcc LD=/opt/gcc-4.9.3-64-gnu/bin/mips64el-linux-ld

./configure --shared --prefix=$PWD/__install

make -j4
make install

5 拷贝库和头文件

cp -a libz.so libz.so.1.2.11 /opt/gcc-4.9.3-64-gnu/mips64el-linux/lib
原文地址:https://www.cnblogs.com/marshu/p/14416313.html