Source

woocode / sa-auto / src / zlib.sh

Full commit
#!/bin/sh

. ./set_app_env.sh;

L_CFLAGS="-fPIC";
L_LDFLAGS="";

CFLAGS=" $G_CFLAGS $L_CFLAGS";export CFLAGS;
LDFLAGS=" $G_LDFLAGS $L_LDFLAGS";export LDFLAGS;
CPPFLAGS=" $G_CPPFLAGS $L_CPPFLAGS";export CPPFLAGS;

rm -rf $ZLIB
rm -rf $APP_LIB/zlib

tar zxvf $ZLIB.tar.gz

cd $ZLIB

./configure --prefix=$APP_LIB/$ZLIB

make $MAKEOPT &&

make install

ln -s $APP_LIB/$ZLIB $APP_LIB/zlib