diff --git a/plugins/php/versions/53/apc.sh b/plugins/php/versions/53/apc.sh index 0bff3a54a..1aef1067e 100755 --- a/plugins/php/versions/53/apc.sh +++ b/plugins/php/versions/53/apc.sh @@ -10,7 +10,7 @@ rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath") sourcePath=${serverPath}/source/php - +SYS_ARCH=`arch` LIBNAME=apc LIBV=3.1.9 sysName=`uname` @@ -46,8 +46,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 && make install && make clean fi diff --git a/plugins/php/versions/54/apc.sh b/plugins/php/versions/54/apc.sh index 156e46a98..262d9efff 100755 --- a/plugins/php/versions/54/apc.sh +++ b/plugins/php/versions/54/apc.sh @@ -10,7 +10,7 @@ rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath") sourcePath=${serverPath}/source/php - +SYS_ARCH=`arch` LIBNAME=apc _LIBNAME=$(echo $LIBNAME | tr '[a-z]' '[A-Z]') LIBV=3.1.9 @@ -45,8 +45,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 && make install && make clean fi