1. yang xiaoyong
  2. woocode

Source

woocode / sa-auto / src / libpng.sh

#!/bin/sh

. ./set_app_env.sh;

L_CFLAGS="-fPIC -I $APP_LIB/zlib/include";
L_LDFLAGS="-L$APP_LIB/zlib/lib -lz";

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

rm -rf $PNG
rm -rf $APP_LIB/libpng

tar zxvf $PNG.tar.gz

cd $PNG

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

make $MAKEOPT &&
make install

ln -s $APP_LIB/$PNG $APP_LIB/libpng