This commit is contained in:
midoks
2019-11-29 21:51:49 +08:00
parent c76920f531
commit afaecef2d7
26 changed files with 177 additions and 152 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ Install_lib()
OPTIONS=''
if [ $sysName == 'Darwin' ]; then
OPTIONS="--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2q"
LIB_DEPEND_DIR=`brew info openssl | grep /usr/local/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="--with-openssl-dir=${LIB_DEPEND_DIR}"
fi
php_lib=$sourcePath/php_lib
+4 -7
View File
@@ -13,13 +13,9 @@ sourcePath=${serverPath}/source/php
actionType=$1
version=$2
LIBNAME=swoole
LIBV='1.10.1';
if [ "$version" = '70' ] || [ "$version" = '71' ] || [ "$version" = '72' ];then
LIBV='2.2.0'
fi
LIBV=1.10.1
extFile=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20121212/${LIBNAME}.so
@@ -45,7 +41,8 @@ Install_lib()
$serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config \
--enable-openssl --with-openssl-dir=$serverPath/lib/openssl --enable-sockets
--enable-openssl --with-openssl-dir=$serverPath/lib/openssl \
--enable-sockets
make && make install && make clean