[root@localhost zlib-1.2.3]# tar -zxvf zlib-1.2.3.tar.gz
[root@localhost zlib-1.2.3]# cd zlib-1.2.3
[root@localhost zlib-1.2.3]# ./configure --shared --prefix=/opt/brcm/zlib/zlib-release/
[root@localhost zlib-1.2.3]# make
[root@localhost zlib-1.2.3]# make install
附带一点别人平台的说法:
./configure --shared
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