From 889c5d96e563150fa467b51e03fb8101a9b6e736 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 16 Apr 2024 21:25:29 +0800 Subject: [PATCH] Update bcmath.sh --- plugins/php/versions/common/bcmath.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/php/versions/common/bcmath.sh b/plugins/php/versions/common/bcmath.sh index 8d02380a8..341ad1d4c 100755 --- a/plugins/php/versions/common/bcmath.sh +++ b/plugins/php/versions/common/bcmath.sh @@ -60,8 +60,13 @@ Install_lib() fi $serverPath/php/$version/bin/phpize - ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS + if [ "$version" == "83" ];then + CFLAGS="-std=c99" ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS + else + ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS + fi + make clean && make && make install && make clean if [ -d $sourcePath/php${version} ];then