php argon2 安装优化

This commit is contained in:
midoks 2023-10-20 13:42:08 +08:00
parent a578eeef01
commit 5052ea11b0
4 changed files with 23 additions and 4 deletions

View File

@ -91,6 +91,13 @@ if [ "$IS_64BIT" == "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
fi
argon_version=`pkg-config libargon2 --modversion`
if [ "$?" == "0" ];then
OPTIONS="${OPTIONS} --with-password-argon2"
fi
ZIP_OPTION='--with-zip'
libzip_version=`pkg-config libzip --modversion`
if version_lt "$libzip_version" "0.11.0" ;then
@ -99,6 +106,7 @@ if version_lt "$libzip_version" "0.11.0" ;then
ZIP_OPTION="--with-zip=$serverPath/lib/libzip"
fi
# ----- cpu start ------
if [ -z "${cpuCore}" ]; then
cpuCore="1"
@ -149,7 +157,6 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then
--enable-sysvshm \
--disable-intl \
--disable-fileinfo \
--with-password-argon2 \
$OPTIONS \
--enable-fpm
make clean && make -j${cpuCore} && make install && make clean

View File

@ -84,6 +84,11 @@ else
OPTIONS="${OPTIONS} --with-curl"
fi
argon_version=`pkg-config libargon2 --modversion`
if [ "$?" == "0" ];then
OPTIONS="${OPTIONS} --with-password-argon2"
fi
ZIP_OPTION='--with-zip'
libzip_version=`pkg-config libzip --modversion`
if version_lt "$libzip_version" "0.11.0" ;then
@ -142,7 +147,6 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then
--enable-sysvshm \
--disable-intl \
--disable-fileinfo \
--with-password-argon2 \
$OPTIONS \
--enable-fpm
make clean && make -j${cpuCore} && make install && make clean

View File

@ -86,6 +86,11 @@ if [ "$IS_64BIT" == "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
fi
argon_version=`pkg-config libargon2 --modversion`
if [ "$?" == "0" ];then
OPTIONS="${OPTIONS} --with-password-argon2"
fi
# ----- cpu start ------
if [ -z "${cpuCore}" ]; then
cpuCore="1"
@ -145,7 +150,6 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then
--enable-sysvshm \
--disable-intl \
--disable-fileinfo \
--with-password-argon2 \
$OPTIONS \
--enable-fpm
make clean && make -j${cpuCore} && make install && make clean

View File

@ -80,6 +80,11 @@ else
OPTIONS="${OPTIONS} --with-curl"
fi
argon_version=`pkg-config libargon2 --modversion`
if [ "$?" == "0" ];then
OPTIONS="${OPTIONS} --with-password-argon2"
fi
IS_64BIT=`getconf LONG_BIT`
if [ "$IS_64BIT" == "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
@ -144,7 +149,6 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then
--enable-sysvshm \
--disable-intl \
--disable-fileinfo \
--with-password-argon2 \
$OPTIONS \
--enable-fpm
make clean && make -j${cpuCore} && make install && make clean