diff --git a/build.sh b/build.sh index 0487576..5b03ce2 100755 --- a/build.sh +++ b/build.sh @@ -136,6 +136,10 @@ declare ODBC_INSTALL_DIR="${BUILD_DIR}/odbc" declare ERR_MKGS_FAILED=1 declare MKGS_OK=0 +if [ "$UNIX_ODBC"X = X ]; then + UNIX_ODBC="${LOCAL_DIR}/third_party/unixodbc/install_comm/unixODBC-2.3.9" +fi + SERVERLIBS_PATH="${serverlib_dir}" ################################### @@ -182,6 +186,10 @@ function install_odbc() { cd ${LOCAL_DIR} + cd ${LOCAL_DIR}/third_party/unixodbc/ + sh ./build_unixodbc.sh -m build >> "$LOG_FILE" 2>&1 + cd ${LOCAL_DIR} + export GAUSSHOME=$SERVERLIBS_PATH export LD_LIBRARY_PATH=$SERVERLIBS_PATH/lib:$LD_LIBRARY_PATH