Update eaccelerator.sh

This commit is contained in:
midoks
2023-08-13 14:13:32 +08:00
parent 04c4e7ddc8
commit e0197fef3a
+7 -1
View File
@@ -14,7 +14,7 @@ rootPath=$(dirname "$rootPath")
rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source/php
SYS_ARCH=`arch`
LIBNAME=eaccelerator
LIBV=0.9.6
sysName=`uname`
@@ -51,8 +51,14 @@ 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
$serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config \
$OPTIONS \
--enable-eaccelerator=shared
make && make install && make clean