Source

woocode / sa-auto / src / mysql5.sh

#!/bin/sh

. ./set_app_env.sh;

#L_CFLAGS="-I$APP_LIB/ncurses/include -I$APP_LIB/readline/include"
#L_LDFLAGS="-L$APP_LIB/ncurses/lib -L$APP_LIB/readline/lib"
#L_CPPFLAGS="-I$APP_LIB/ncurses/include -I$APP_LIB/readline/include"

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

rm -rf $MYSQL5
rm -rf $APP_SVR/mysql5

x $MYSQL5.tar.gz

cd $MYSQL5

./configure --prefix=$APP_SVR/$MYSQL5                       \
            --with-plugins=innobase                         \
            --with-extra-charsets=complex                   \
            --enable-thread-safe-client                     \
            --enable-local-infile                           \
            --enable-assembler                              \
            --without-docs                                  \
            --without-man                                   \
            --without-libedit                               \
            --without-readline                              \
            --with-fast-mutexes                             \
            --with-zlib-dir=$APP_LIB/zlib                   \
            --with-client-ldflags="-L$APP_LIB/ncurses/lib" #  -L$APP_LIB/readline/lib"
            #--with-unix-socket-path=$APP_SVR/mysql5         \
            # --with-readline=$APP_LIB/readline \


#            --without-bench

make $MAKEOPT &&
make install

ln -s $APP_SVR/$MYSQL5 $APP_SVR/mysql5

echo $CPLUS_INCLUDE_PATH

#C_INCLUDE_PATH="$APP_LIB/ncurses/include:$APP_LIB/readline/include"
#CPLUS_INCLUDE_PATH="$APP_LIB/ncurses/include:$APP_LIB/readline/include"
#CXX="g++ -I$APP_LIB/ncurses/include -I$APP_LIB/readline/include"