Source

woocode / sa-auto / src / mysql5_build_with_syswide_depen.sh

Full commit
#!/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

tar zxvf $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                                   \
            --with-fast-mutexes                             \
            #--with-unix-socket-path=$APP_SVR/mysql5
            #--with-client-ldflags="-L$APP_LIB/ncurses/lib"
            #--without-libedit                               \

            #-L$APP_LIB/readline/lib"

            #--without-readline                              \
            #--with-zlib-dir=$APP_LIB/zlib                   \

#            --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"