|
|
@ -45,10 +45,7 @@ Install_lib() |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -f "$extFile" ];then |
|
|
|
if [ ! -f "$extFile" ];then |
|
|
|
|
|
|
|
|
|
|
|
OPTIONS='' |
|
|
|
|
|
|
|
if [ $sysName == 'Darwin' ]; then |
|
|
|
|
|
|
|
OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
php_lib=$sourcePath/php_lib |
|
|
|
php_lib=$sourcePath/php_lib |
|
|
|
mkdir -p $php_lib |
|
|
|
mkdir -p $php_lib |
|
|
@ -61,15 +58,26 @@ Install_lib() |
|
|
|
fi |
|
|
|
fi |
|
|
|
cd $php_lib/${LIBNAME}-${LIBV} |
|
|
|
cd $php_lib/${LIBNAME}-${LIBV} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONS='' |
|
|
|
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then |
|
|
|
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then |
|
|
|
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" |
|
|
|
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ $sysName == 'Darwin' ]; then |
|
|
|
|
|
|
|
BREW_DIR=`which brew` |
|
|
|
|
|
|
|
BREW_DIR=${BREW_DIR/\/bin\/brew/} |
|
|
|
|
|
|
|
LIB_DEPEND_DIR=`brew info curl | grep ${BREW_DIR}/Cellar/curl | cut -d \ -f 1 | awk 'END {print}'` |
|
|
|
|
|
|
|
OPTIONS="${OPTIONS} --with-curl=${LIB_DEPEND_DIR}" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$serverPath/php/$version/bin/phpize |
|
|
|
$serverPath/php/$version/bin/phpize |
|
|
|
./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS |
|
|
|
./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS |
|
|
|
make clean && make && make install && make clean |
|
|
|
make clean && make && make install && make clean |
|
|
|
|
|
|
|
|
|
|
|
cd $php_lib && rm -rf $php_lib/${LIBNAME}-${LIBV} |
|
|
|
if [ -d $php_lib/lib${LIBNAME}-${LIBV} ];then |
|
|
|
|
|
|
|
cd $php_lib && rm -rf $php_lib/lib${LIBNAME}-${LIBV} |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
sleep 1 |
|
|
|
sleep 1 |
|
|
|
if [ ! -f "$extFile" ];then |
|
|
|
if [ ! -f "$extFile" ];then |
|
|
|