mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update openssl.sh
This commit is contained in:
@@ -10,7 +10,7 @@ rootPath=$(dirname "$rootPath")
|
||||
rootPath=$(dirname "$rootPath")
|
||||
serverPath=$(dirname "$rootPath")
|
||||
sourcePath=${serverPath}/source/php
|
||||
|
||||
SYS_ARCH=`arch`
|
||||
actionType=$1
|
||||
version=$2
|
||||
|
||||
@@ -69,8 +69,14 @@ Install_lib()
|
||||
export PKG_CONFIG_PATH=$serverPath/lib/openssl10/lib/pkgconfig
|
||||
fi
|
||||
|
||||
OPTIONS=""
|
||||
if [ "${SYS_ARCH}" == "aarch64" ];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 \
|
||||
$OPTIONS \
|
||||
--with-openssl
|
||||
make clean && make && make install && make clean
|
||||
|
||||
|
||||
Reference in New Issue
Block a user