|
|
|
@ -10,7 +10,7 @@ rootPath=$(dirname "$rootPath") |
|
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
|
serverPath=$(dirname "$rootPath") |
|
|
|
|
sourcePath=${serverPath}/source/php |
|
|
|
|
|
|
|
|
|
SYS_ARCH=`arch` |
|
|
|
|
LIBNAME=xhprof |
|
|
|
|
LIBV=2.3.7 |
|
|
|
|
sysName=`uname` |
|
|
|
@ -53,9 +53,14 @@ Install_lib() |
|
|
|
|
fi |
|
|
|
|
cd $php_lib/${LIBNAME}-${LIBV}/extension |
|
|
|
|
|
|
|
|
|
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 --enable-xhprof \ |
|
|
|
|
--with-php-config=$serverPath/php/$version/bin/php-config |
|
|
|
|
--with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS |
|
|
|
|
make clean && make && make install && make clean |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|