From e05f7a9c3fb57268c38d0b3ad269615cfd7625d6 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 13 Aug 2023 13:41:46 +0800 Subject: [PATCH] Update seaslog.sh --- plugins/php/versions/common/seaslog.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/php/versions/common/seaslog.sh b/plugins/php/versions/common/seaslog.sh index 409486fd7..c7ad7c8af 100755 --- a/plugins/php/versions/common/seaslog.sh +++ b/plugins/php/versions/common/seaslog.sh @@ -10,7 +10,7 @@ rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath") sourcePath=${serverPath}/source/php - +SYS_ARCH=`arch` LIBNAME=SeasLog _LIBNAME=$(echo $LIBNAME | tr '[A-Z]' '[a-z]') LIBV=2.2.0 @@ -61,8 +61,13 @@ 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 + ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS make clean && make && make install && make clean fi