update
This commit is contained in:
parent
cd0653d092
commit
dd579b7e5c
|
|
@ -55,8 +55,8 @@ Install_lib()
|
|||
if [ ! -d $php_lib/${LIBNAME}-${LIBV} ];then
|
||||
wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz
|
||||
cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz
|
||||
cd ${LIBNAME}-${LIBV}
|
||||
fi
|
||||
cd $php_lib/${LIBNAME}-${LIBV}
|
||||
|
||||
OPTIONS=""
|
||||
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ rootPath=$(dirname "$rootPath")
|
|||
rootPath=$(dirname "$rootPath")
|
||||
serverPath=$(dirname "$rootPath")
|
||||
sourcePath=${serverPath}/source/php
|
||||
|
||||
SYS_ARCH=`arch`
|
||||
LIBNAME=memcached
|
||||
LIBV=3.2.0
|
||||
sysName=`uname`
|
||||
|
|
@ -55,10 +55,16 @@ Install_lib()
|
|||
fi
|
||||
cd $php_lib/${LIBNAME}-${LIBV}
|
||||
|
||||
OPTIONS=""
|
||||
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
|
||||
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
|
||||
fi
|
||||
|
||||
# sed -i '_bak' "3237,3238s#ulong#zend_ulong#g" $php_lib/${LIBNAME}-${LIBV}/php_memcached.c
|
||||
$serverPath/php/$version/bin/phpize
|
||||
|
||||
./configure --with-php-config=$serverPath/php/$version/bin/php-config \
|
||||
$OPTIONS \
|
||||
--enable-memcached \
|
||||
--disable-memcached-sasl
|
||||
make clean && make && make install && make clean
|
||||
|
|
|
|||
Loading…
Reference in New Issue