Source

woocode / sa-auto / src / jmagick.sh

Full commit
#!/bin/sh

. ./set_app_env.sh;

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

JAVA_HOME=$APP_SVR/jdk;export JAVA_HOME;
PATH=$APP_SVR/jdk/bin:$PATH;export PATH;


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

rm -rf $JMAGICK
rm -rf $APP_LIB/jmagick

tar zxvf $JMAGICK.tar.gz

cd $JMAGICK/

autoconf

./configure --prefix=$APP_LIB/$JMAGICK --with-java-home=$APP_SVR/jdk --with-magick-home=$APP_LIB/ImageMagick 

sed -i -e 's/JFLAGS =/& -Xlint:deprecation -Xlint:unchecked/g' Make.def
sed -i '56 d' Make.rules
sed -i '56 i JAVA_PACKAGE_REL_PATH = magick' Make.rules

#不可多线程编译
make
make install

ln -s $APP_LIB/$JMAGICK $APP_LIB/jmagick