Source

woocode / sa-auto / src / curl.sh

Full commit
#!/bin/sh

. ./set_app_env.sh;

LD_LIBRARY_PATH=$APP_LIB/openssl/lib/
export LD_LIBRARY_PATH

#L_CFLAGS=`pkg-config openssl --cflags`
#L_LDFLAGS=`pkg-config openssl --libs`
#L_CPPFLAGS=`pkg-config openssl --cflags`

L_CFLAGS=""
L_LDFLAGS=""
L_CPPFLAGS=""


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

rm -rf $CURL
rm -rf $APP_LIB/curl

tar zxvf $CURL.tar.gz

cd $CURL

./configure --prefix=$APP_LIB/$CURL        \
            --with-ssl=$APP_LIB/openssl 

#            --disable-shared               \

make $MAKEOPT &&

make install

ln -s $APP_LIB/$CURL $APP_LIB/curl