适配odbc打包

This commit is contained in:
zhang_xubo
2021-09-28 14:44:51 +08:00
parent 304c331470
commit ecc3af2ef5

View File

@ -100,14 +100,6 @@ while [ $# -gt 0 ]; do
serverlib_dir=$2 serverlib_dir=$2
shift 2 shift 2
;; ;;
-ud|--unixodbc_dir)
if [ "$2"X = X ]; then
echo "no given unixodbc directory values"
exit 1
fi
UNIX_ODBC=$2
shift 2
;;
*) *)
echo "Internal Error: option processing error: $1" 1>&2 echo "Internal Error: option processing error: $1" 1>&2
@ -139,6 +131,7 @@ SERVERLIBS_PATH="${serverlib_dir}"
################################## ##################################
COMPLIE_TYPE="comm" COMPLIE_TYPE="comm"
echo "[makeodbc] $(date +%y-%m-%d' '%T): Work root dir : ${LOCAL_DIR}" echo "[makeodbc] $(date +%y-%m-%d' '%T): Work root dir : ${LOCAL_DIR}"
UNIX_ODBC="${LOCAL_DIR}/third_party/unixodbc/install_comm/unixODBC-2.3.9"
####################################################################### #######################################################################
# Print log. # Print log.
####################################################################### #######################################################################
@ -176,6 +169,10 @@ function clean_environment()
####################################################################### #######################################################################
function install_odbc() function install_odbc()
{ {
echo "Begin make odbc..." >> "$LOG_FILE" 2>&1
cd ${LOCAL_DIR}/third_party/unixodbc/
sh ./build_unixodbc.sh -m build >> "$LOG_FILE" 2>&1
cd ${LOCAL_DIR} cd ${LOCAL_DIR}
export GAUSSHOME=$SERVERLIBS_PATH export GAUSSHOME=$SERVERLIBS_PATH